Skip to content

Commit d1765d0

Browse files
committed
fix: set sid for datalad message
1 parent 0046aa6 commit d1765d0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

heudiconv/cli/run.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ def process_args(args):
255255
args.bids)
256256
continue
257257

258-
anon_sid = anonymize_sid(sid, args.anon_cmd) if args.anon_cmd else sid
258+
anon_sid = anonymize_sid(sid, args.anon_cmd) if args.anon_cmd else None
259259
if args.anon_cmd:
260260
lgr.info('Anonymized {} to {}'.format(sid, anon_sid))
261261

@@ -267,6 +267,7 @@ def process_args(args):
267267
# the outdir -> study_outdir datasets if not yet there
268268
if args.datalad:
269269
from ..external.dlad import prepare_datalad
270+
anon_sid = sid if not anon_sid else anon_sid
270271
dl_msg = prepare_datalad(anon_study_outdir, anon_outdir, anon_sid,
271272
args.session, seqinfo, dicoms, args.bids)
272273

0 commit comments

Comments
 (0)