Skip to content

Conversation

@Lestropie
Copy link
Member

Error encountered by user attempting to process their own data during workshop.

Description in faf0788.

@Lestropie Lestropie requested a review from a team September 25, 2023 23:32
@Lestropie Lestropie self-assigned this Sep 25, 2023
If the phase encoding information present in the header is only the phase encoding direction, but not readout time is present, then the constructed phase encoding matrix will possess only three columns, not four. If this happens, but an attempt is then made to cross-reference the readout time in the phase encoding table generated from header content against what the user has specified at the command-line, then an unhandled exception will occur. This change prevents specifically the comparison of readout times from being made if no such information is present.
Replacement for erroneous commit faf0788.
Also includes additional test that results in an unhandled exception on 3.0.4 but executes successfully with this change.
@Lestropie Lestropie force-pushed the dwifslpreproc_no_readouttime_in_header branch from faf0788 to 3732dbc Compare January 29, 2024 04:33
@Lestropie
Copy link
Member Author

Fixed & added test as proof. Seeking approval review.

@Lestropie Lestropie added this to the 3.0.5 updates milestone Sep 16, 2024
@Lestropie Lestropie added this pull request to the merge queue Feb 5, 2025
Merged via the queue into master with commit ebbed77 Feb 6, 2025
@Lestropie Lestropie deleted the dwifslpreproc_no_readouttime_in_header branch February 6, 2025 00:01
Lestropie added a commit that referenced this pull request Aug 11, 2025
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.
@Lestropie Lestropie mentioned this pull request Sep 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants