Skip to content

Commit a1429e5

Browse files
committed
more helpful error msgs
1 parent bd3400c commit a1429e5

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

graynet/run_workflow.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -458,8 +458,9 @@ def roiwise_stats_indiv(subject_id_list, input_dir,
458458
uniq_rois, centroids, roi_labels = volumetric_roi_info(atlas)
459459
null_roi_to_be_ignored = cfg.null_roi_index
460460
else:
461-
raise ValueError('Unrecognized type of base_feature! Must be one of {}'
462-
''.format(cfg.base_feature_list))
461+
raise ValueError('Unrecognized type of base_feature: {}\n'
462+
' Must be one of {}'
463+
''.format(base_feature, cfg.base_feature_list))
463464

464465
print('\nProcessing {} features resampled to {} atlas,'
465466
' smoothed at {} with node size {}'.format(base_feature, atlas,
@@ -865,7 +866,8 @@ def parse_args():
865866
else:
866867
sub_id_list_path = Path(params.subject_ids_path).resolve()
867868
if not sub_id_list_path.exists():
868-
raise IOError("Given subject IDs file doesn't exist.")
869+
raise IOError("Given subject IDs file doesn't exist:\n"
870+
"\t{}".format(sub_id_list_path))
869871

870872
do_multi_edge = bool(params.do_multi_edge)
871873
summary_stat = params.summary_stat

0 commit comments

Comments
 (0)