Skip to content

Commit

Permalink
BF - fixed errenous path when using metrics_dir
Browse files Browse the repository at this point in the history
  • Loading branch information
gabknight committed Jan 8, 2025
1 parent cc2dc8d commit fe35d8e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions scripts/scil_volume_stats_in_ROI.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 1 addition & 3 deletions scripts/scil_volume_stats_in_labels.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit fe35d8e

Please sign in to comment.