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

ENH: Add NIFTI_XFORM_TEMPLATE_OTHER xform code #736

Merged
merged 3 commits into from
Mar 19, 2019

Conversation

effigies
Copy link
Member

@effigies effigies commented Mar 1, 2019

This is an initial implementation of the proposed xform code 5. The test might be redundant, but I didn't immediately see anything that would exercise this addition, so it's just a simple verification that any defined code can be set without raising errors and retrieved reliably.

I used the macro name I proposed, but am content to revert to NIFTI_XFORM_GEN_STANDARD, if that's the consensus.

Closes #730.

cc @mrneont @afni-rickr @satra

Ref: NITRC thread 10029 - Proposed (minor) update for NIFTI sform values

@effigies effigies added this to the 2.4.0 milestone Mar 1, 2019
@codecov-io
Copy link

codecov-io commented Mar 2, 2019

Codecov Report

Merging #736 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #736   +/-   ##
=======================================
  Coverage   89.41%   89.41%           
=======================================
  Files          93       93           
  Lines       11474    11474           
  Branches     1992     1992           
=======================================
  Hits        10259    10259           
+ Misses        880      879    -1     
- Partials      335      336    +1
Impacted Files Coverage Δ
nibabel/nifti1.py 91.52% <ø> (ø) ⬆️
nibabel/cmdline/parrec2nii.py 32.73% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4f7d3d5...a5abbf5. Read the comment docs.

@effigies effigies marked this pull request as ready for review March 11, 2019 19:39
@effigies
Copy link
Member Author

Added to the official nifti1.h in NIFTI-Imaging/nifti_clib@9843041.

@effigies
Copy link
Member Author

Now that this is appearing in the official repository, so we have macro name confirmation, I'd like to go ahead and get this in for the 2.4 release. Anybody up for a review?

@effigies effigies force-pushed the enh/nifti_xform_template_other branch from b21bd35 to 288bbf7 Compare March 13, 2019 20:11
@effigies effigies mentioned this pull request Mar 15, 2019
20 tasks
@effigies
Copy link
Member Author

Review is looking unlikely. Here we go.

@effigies effigies merged commit b2f4300 into nipy:master Mar 19, 2019
@effigies effigies deleted the enh/nifti_xform_template_other branch March 19, 2019 12:03
@effigies effigies restored the enh/nifti_xform_template_other branch March 19, 2019 12:09
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