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: Copy header to ensure mask is really aligned #844

Merged
merged 1 commit into from
Dec 12, 2023

Conversation

effigies
Copy link
Member

@effigies effigies commented Dec 8, 2023

For reasons I don't fully understand, the transformation of a template mask for N4 correction could sometimes end up with different qforms and sforms from the reference image. Our attempt to fix up the headers was insufficient, so I'm just copying the whole thing. This fixes the issue, and this image isn't going to be reused in any other context, so the preservation of other header fields seems irrelevant.

Copy link

codecov bot commented Dec 8, 2023

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (f15c091) 60.96% compared to head (dba5d3a) 60.96%.

Files Patch % Lines
niworkflows/func/util.py 50.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master     #844   +/-   ##
=======================================
  Coverage   60.96%   60.96%           
=======================================
  Files          55       55           
  Lines        6558     6558           
  Branches      954      954           
=======================================
  Hits         3998     3998           
  Misses       2374     2374           
  Partials      186      186           
Flag Coverage Δ
reportlettests ∅ <ø> (∅)
unittests ∅ <ø> (∅)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@effigies
Copy link
Member Author

@oesteban Any objection?

Copy link
Member

@oesteban oesteban left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No objections at all - thanks!

@effigies effigies merged commit df9b596 into nipreps:master Dec 12, 2023
25 of 26 checks passed
@effigies effigies deleted the fix/copy-header branch December 12, 2023 15:56
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.

2 participants