Skip to content

Commit

Permalink
Fixing function bug
Browse files Browse the repository at this point in the history
  • Loading branch information
karp2601 authored and karp2601 committed Dec 16, 2024
1 parent c043822 commit 3d832a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/scil_viz_gradients_screenshot.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def main():

if len(args.in_gradient_scheme) == 2:
assert_gradients_filenames_valid(parser, args.in_gradient_scheme,
'fsl')
True)
elif len(args.in_gradient_scheme) == 1:
basename, ext = os.path.splitext(args.in_gradient_scheme[0])
if ext in ['.bvec', '.bvecs', '.bvals', '.bval']:
Expand All @@ -98,7 +98,7 @@ def main():
else:
assert_gradients_filenames_valid(parser,
args.in_gradient_scheme,
'mrtrix')
False)
else:
parser.error('Depending on the gradient format you should have '
'two files for FSL format and one file for MRtrix')
Expand Down

0 comments on commit 3d832a5

Please sign in to comment.