-
Notifications
You must be signed in to change notification settings - Fork 262
Parrec sort fix #409
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
Merged
Merged
Parrec sort fix #409
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
e9f5a3e
ENH: improve sorting of more complicated .PAR/.REC files
grlee77 19fd9c1
TST: add test for proper sorting of a .PAR file corresponding to a mu…
grlee77 f55e7a9
STY: improve coding style for parrec based on feedback
grlee77 e201289
FIX: add image_type_mr as a sort key. This is to support scans where…
grlee77 cd45556
MAINT: split the strict sort logic into a separate _strict_sort_keys …
grlee77 2f95cbb
TST: add test for --strict-sort option to parrec2nii
grlee77 e40ba78
FIX: fix VisibleDepricationWarning due to incorrect boolean index len…
grlee77 04d5543
TST: add test for a .PAR file with both multiple echos and multiple i…
grlee77 f44bca2
FIX: no underscore in 'label type' key
grlee77 bbc136e
TST: add an additional ASL-based test case for strict_sort
grlee77 bca0fcc
TST: test header read on V4 .PAR file for strict_sort=True too
grlee77 9a644b7
MAINT: remove _direction_numbers as it will never be used.
grlee77 9e98d6e
make fixes necessary for strict-sort tests to pass even if image_defs…
grlee77 eac41a3
MAINT: simplify logic in _strict_sort_order and improve the docstring
grlee77 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe move into
_lax_sort_keys method
and dokeys = self._strict_sort_keys() if self.strict_sort else self._lax_sort_keys()