We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0046aa6 commit d1765d0Copy full SHA for d1765d0
heudiconv/cli/run.py
@@ -255,7 +255,7 @@ def process_args(args):
255
args.bids)
256
continue
257
258
- anon_sid = anonymize_sid(sid, args.anon_cmd) if args.anon_cmd else sid
+ anon_sid = anonymize_sid(sid, args.anon_cmd) if args.anon_cmd else None
259
if args.anon_cmd:
260
lgr.info('Anonymized {} to {}'.format(sid, anon_sid))
261
@@ -267,6 +267,7 @@ def process_args(args):
267
# the outdir -> study_outdir datasets if not yet there
268
if args.datalad:
269
from ..external.dlad import prepare_datalad
270
+ anon_sid = sid if not anon_sid else anon_sid
271
dl_msg = prepare_datalad(anon_study_outdir, anon_outdir, anon_sid,
272
args.session, seqinfo, dicoms, args.bids)
273
0 commit comments