Skip to content

Commit e9542e0

Browse files
authored
Merge pull request #135 from cni-md/master
copy not symlink the dicoms while preparing them during "conversion" fixes #120
2 parents ece8462 + bb9e578 commit e9542e0

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

heudiconv/convert.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -324,10 +324,11 @@ def convert_dicom(item_dicoms, bids, prefix,
324324
outfile = op.join(dicomdir, op.basename(filename))
325325
if not op.islink(outfile):
326326
# TODO: add option to enable hardlink?
327-
if symlink:
328-
os.symlink(filename, outfile)
329-
else:
330-
os.link(filename, outfile)
327+
# if symlink:
328+
# os.symlink(filename, outfile)
329+
# else:
330+
# os.link(filename, outfile)
331+
shutil.copyfile(filename, outfile)
331332

332333

333334
def nipype_convert(item_dicoms, prefix, with_prov, bids, tmpdir):

0 commit comments

Comments
 (0)