-
Notifications
You must be signed in to change notification settings - Fork 191
Fix phase encoding handling on 3.0.7 #3146
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
Conversation
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 reverts commit 38910df.
- renamed phaseencoding.save() to phaseencoding.save_table() to disambiguate from FSL topup format. - dwifslpreproc: Do not attempt to write FSL eddy format phase encoding data from a piped image; force write of a NIfTI image here, even if it is somewhat redundant. - Docs: More description on ambiguity between phase encoding "table" and FSL topup format phase encoding file.
- On inability to merge diffusion gradient tables, issue message at info level rather than warning. - Suppress warning message on inability to modify phase encoding ifnromation to match image realignment tinformation only occur if such phase encoding information is both present and otherwise not explicitly flagged as being no longer valid. - For import / export of phase encoding information in external metadata files alongside different image formats, issue warning-level messages rather than exceptions, and do so across the full spectrum of potentially erroneous usages. - Docs: Full section in phase encoding handling page on the distinction between "table" and "topup" formats.
Because the section of code responsible for running FSL applytopupup now makes use of a temporary NIfTI image, diffusion and phase encoding data are absent. This resulted in failure of the subsequent dwi2mask call. Here the diffusion gradient table and other header key-value metadata are explicitly tracked for each individual volume group defined by phase encoding, so that they can be later suitably combined during image concatenation. Additionally fixes typo in dwifslpreproc test added in #2722.
With up-to-date FSL, it appears that not only "standard_space_roi" depends on Unix command "dc", but also "bet".
Lestropie
added a commit
that referenced
this pull request
Aug 13, 2025
Tests observed to fail on MacOS in #3146.
Lestropie
added a commit
that referenced
this pull request
Aug 13, 2025
Tests observed to fail on MacOS in #3146.
Member
Author
|
Ready for review. Have checked test logs for erroneous error messages. Python command tests pass with the exception of some |
bjeurissen
approved these changes
Aug 20, 2025
Member
bjeurissen
left a comment
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.
Tested on the workshop single-subject data and appears to fix the issue.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Initial work on resolving #3142. Committing to GitHub so that I can run testing on another system.
dwifslpreproctests (which don't get run as part of CI) pass.dwifslpreprocand everything else) for any excess of warning messages.