From 37f34a7524538ae29bbb29d2a128821ca9b01662 Mon Sep 17 00:00:00 2001 From: EmmaRenauld Date: Tue, 12 Mar 2024 12:00:18 -0400 Subject: [PATCH] Fix failing tests 2 --- scripts/scil_fodf_ssst.py | 2 +- scripts/scil_qball_metrics.py | 2 +- scripts/scil_visualize_scatterplot.py | 7 ++++--- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/scripts/scil_fodf_ssst.py b/scripts/scil_fodf_ssst.py index 387dd4b77..efe1808e5 100755 --- a/scripts/scil_fodf_ssst.py +++ b/scripts/scil_fodf_ssst.py @@ -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) diff --git a/scripts/scil_qball_metrics.py b/scripts/scil_qball_metrics.py index 747fc3175..819509e8f 100755 --- a/scripts/scil_qball_metrics.py +++ b/scripts/scil_qball_metrics.py @@ -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) diff --git a/scripts/scil_visualize_scatterplot.py b/scripts/scil_visualize_scatterplot.py index d26d6df01..5ff088d55 100755 --- a/scripts/scil_visualize_scatterplot.py +++ b/scripts/scil_visualize_scatterplot.py @@ -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 = './'