diff --git a/scripts/scil_volume_stats_in_ROI.py b/scripts/scil_volume_stats_in_ROI.py index 4382a4a9c..88916becf 100755 --- a/scripts/scil_volume_stats_in_ROI.py +++ b/scripts/scil_volume_stats_in_ROI.py @@ -76,9 +76,7 @@ def main(): .format(args.metrics_dir)) assert_inputs_exist(parser, args.in_rois) - tmp_file_list = glob.glob(os.path.join(args.metrics_dir, '*nii.gz')) - args.metrics_file_list = [os.path.join(args.metrics_dir, f) - for f in tmp_file_list] + args.metrics_file_list = glob.glob(os.path.join(args.metrics_dir, '*nii.gz')) else: assert_inputs_exist(parser, args.in_rois + args.metrics_file_list) assert_headers_compatible(parser, args.in_rois + args.metrics_file_list) diff --git a/scripts/scil_volume_stats_in_labels.py b/scripts/scil_volume_stats_in_labels.py index 6a311459f..05963e5af 100755 --- a/scripts/scil_volume_stats_in_labels.py +++ b/scripts/scil_volume_stats_in_labels.py @@ -64,9 +64,7 @@ def main(): .format(args.metrics_dir)) assert_inputs_exist(parser, [args.in_labels, args.in_labels_lut]) - tmp_file_list = glob.glob(os.path.join(args.metrics_dir, '*nii.gz')) - args.metrics_file_list = [os.path.join(args.metrics_dir, f) - for f in tmp_file_list] + args.metrics_file_list = glob.glob(os.path.join(args.metrics_dir, '*nii.gz')) else: assert_inputs_exist(parser, [args.in_labels] + args.metrics_file_list) assert_headers_compatible(parser,