Skip to content

Commit

Permalink
Fix failing tests 2
Browse files Browse the repository at this point in the history
  • Loading branch information
EmmaRenauld committed Mar 12, 2024
1 parent dee858f commit 37f34a7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion scripts/scil_fodf_ssst.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def main():
assert_inputs_exist(parser, [args.in_dwi, args.in_bval, args.in_bvec,
args.frf_file], args.mask)
assert_outputs_exist(parser, args, args.out_fODF)
assert_headers_compatible(args.in_dwi, args.mask)
assert_headers_compatible(parser, args.in_dwi, args.mask)

# Loading data
full_frf = np.loadtxt(args.frf_file)
Expand Down
2 changes: 1 addition & 1 deletion scripts/scil_qball_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def main():

assert_inputs_exist(parser, [args.in_dwi, args.in_bval, args.in_bvec],
args.mask)
assert_outputs_exist(parser, args, arglist)
assert_outputs_exist(parser, args, [], optional=arglist)
assert_headers_compatible(parser, args.in_dwi, args.mask)

nbr_processes = validate_nbr_processes(parser, args)
Expand Down
7 changes: 4 additions & 3 deletions scripts/scil_visualize_scatterplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,12 +144,13 @@ def main():
logging.getLogger().setLevel(logging.getLevelName(args.verbose))

maps = [args.in_x_map, args.in_y_map]
prob_maps = args.in_prob_maps or []
assert_inputs_exist(parser, maps,
optional=args.in_prob_maps +
optional=prob_maps +
[args.in_bin_mask, args.in_atlas, args.atlas_lut])
assert_headers_compatible(parser, maps,
optional=args.in_prob_maps +
[args.in_bin_mask, args.in_atlas])
optional=prob_maps +
[args.in_bin_mask, args.in_atlas])

if args.out_dir is None:
args.out_dir = './'
Expand Down

0 comments on commit 37f34a7

Please sign in to comment.