-
Notifications
You must be signed in to change notification settings - Fork 127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
try a simple fix for wrongly ordered files in tar file #535
Conversation
Codecov Report
@@ Coverage Diff @@
## master #535 +/- ##
=======================================
Coverage 77.64% 77.64%
=======================================
Files 41 41
Lines 3167 3167
=======================================
Hits 2459 2459
Misses 708 708
Continue to review full report at Codecov.
|
But isn't the underlying issue that we (or is it a heuristic?) have some order effect? |
File names could be 1, 2, ..., 10 and string sorting would screw it up |
You're right, our files are alphanumerically sorted by acquisition/content-creation order because it uses Siemens UID, and that might not be the general case. Lines 163 to 164 in 80a6538
In most cases the order of the files won't matter to the indexing nor to dcm2niix. But for that particular case described in #519 : complex data (at least 2 dicoms with M and P ImageType) in a single series will give a varying ImageType to the seqinfo depending on the sorting, as the parse will choose the first one as the example dicom. |
your argument that we sort in non-tar handling convinces me. Let's proceed with this, and see if any fallout happens ;) Thank you @bpinsard ! |
🚀 PR was released in |
solves #519