Skip to content

Commit 89317df

Browse files
committed
fix: #353
1 parent 312cd2e commit 89317df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

heudiconv/convert.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def prep_conversion(sid, dicoms, outdir, heuristic, converter, anon_sid,
122122
# detected
123123
# ref: https://github.com/nipy/heudiconv/issues/84#issuecomment-330048609
124124
# for more automagical wishes
125-
target_heuristic_filename = op.join(idir, op.basename(heuristic.filename))
125+
target_heuristic_filename = op.join(idir, 'heuristic.py')
126126
# TODO:
127127
# 1. add a test
128128
# 2. possibly extract into a dedicated function for easier logic flow here
@@ -151,7 +151,7 @@ def prep_conversion(sid, dicoms, outdir, heuristic, converter, anon_sid,
151151
# TODO -- might have been done outside already!
152152
# MG -- will have to try with both dicom template, files
153153
assure_no_file_exists(target_heuristic_filename)
154-
safe_copyfile(heuristic.filename, idir)
154+
safe_copyfile(heuristic.filename, target_heuristic_filename)
155155
if dicoms:
156156
seqinfo = group_dicoms_into_seqinfos(
157157
dicoms,

0 commit comments

Comments
 (0)