Skip to content
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

FIX: Ensure shape matches template during resampling #3296

Closed
wants to merge 5 commits into from

Conversation

mgxd
Copy link
Collaborator

@mgxd mgxd commented Jun 3, 2024

The reverse of the TransformFixedParameters should match the template dimensions.

This fell through the cracks because the templates tested (MNI152 variants) all have the same X and Z dimensions. Only when testing on a template with distinct values for shape did this become evident.

Additionally, this removes any FIXED_PARAMS checks, as that is template specific and more useful for debugging the initial implementation.

@mgxd mgxd requested a review from effigies June 3, 2024 20:01
Copy link

codecov bot commented Jun 4, 2024

Codecov Report

Attention: Patch coverage is 0% with 7 lines in your changes missing coverage. Please review.

Project coverage is 73.73%. Comparing base (d2f6869) to head (c9619a8).
Report is 1 commits behind head on master.

Files Patch % Lines
fmriprep/utils/transforms.py 0.00% 7 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master    #3296   +/-   ##
=======================================
  Coverage   73.72%   73.73%           
=======================================
  Files          56       56           
  Lines        4271     4265    -6     
=======================================
- Hits         3149     3145    -4     
+ Misses       1122     1120    -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

mgxd and others added 3 commits June 4, 2024 15:00
The reverse of the TransformFixedParameters should match the template dimensions.

This fell through the cracks because the templates tested (MNI152 variants) all have the same
X and Z dimensions. Only when testing on a template with distinct values for shape did this become evident.

Additionally, this removes any `FIXED_PARAMS` checks, as that is template specific and more useful for debugging the
initial implementation.
Co-authored-by: Chris Markiewicz <effigies@gmail.com>
@effigies effigies added this to the 24.0.0 milestone Jun 4, 2024
fmriprep/utils/transforms.py Outdated Show resolved Hide resolved
fmriprep/utils/transforms.py Outdated Show resolved Hide resolved
Co-authored-by: Chris Markiewicz <effigies@gmail.com>
effigies added a commit that referenced this pull request Jun 5, 2024
Alternative to (and builds on) #3296.

Closes #3296.

---------

Co-authored-by: mathiasg <mathiasg@stanford.edu>
Co-authored-by: Mathias Goncalves <goncalves.mathias@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants