Skip to content

Commit

Permalink
fix copy_no_deid argument swap
Browse files Browse the repository at this point in the history
As discovered/reported by @araikes, the first two arguments of the `copy_no_deid` function in `run_deeid` were swapped. This PR addresses this and thus should fix #49.
  • Loading branch information
PeerHerholz committed Apr 9, 2021
1 parent 2f6e02f commit 177f447
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bidsonym/run_deeid.py
Expand Up @@ -100,7 +100,7 @@ def run_deeid():
if part not in layout.get_subjects():
list_part_prob.append(part)
if len(list_part_prob) >= 1:
raise Exception("The participant(s) you indicated are present in the BIDS dataset, please check again."
raise Exception("The participant(s) you indicated are not present in the BIDS dataset, please check again."
"This refers to:")
print(list_part_prob)

Expand Down Expand Up @@ -135,7 +135,7 @@ def run_deeid():
run_brain_extraction_nb(T1_file, subject_label, args.bids_dir)

check_meta_data(args.bids_dir, subject_label, list_check_meta)
source_t1w = copy_no_deid(subject_label, args.bids_dir, T1_file)
source_t1w = copy_no_deid(args.bids_dir, subject_label, T1_file)

if args.del_meta:
del_meta_data(args.bids_dir, subject_label, list_field_del)
Expand Down

0 comments on commit 177f447

Please sign in to comment.