Skip to content

Commit 3f9a504

Browse files
authored
Merge pull request #535 from UNFmontreal/fix/tar_unordered_files
try a simple fix for wrongly ordered files in tar file
2 parents eddb35c + fcee77a commit 3f9a504

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

heudiconv/parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def get_extracted_dicoms(fl):
9797
for tm in tmembers:
9898
tm.mode = 0o700
9999
# get all files, assemble full path in tmp dir
100-
tf_content = [m.name for m in tmembers if m.isfile()]
100+
tf_content = sorted([m.name for m in tmembers if m.isfile()])
101101
# store full paths to each file, so we don't need to drag along
102102
# tmpdir as some basedir
103103
sessions[session] = [op.join(tmpdir, f) for f in tf_content]

0 commit comments

Comments
 (0)