Skip to content

SCHEMA: Add convenience objects to nifti_header context#1406

Merged
effigies merged 1 commit intobids-standard:masterfrom
effigies:schema/updated_context
Feb 16, 2023
Merged

SCHEMA: Add convenience objects to nifti_header context#1406
effigies merged 1 commit intobids-standard:masterfrom
effigies:schema/updated_context

Conversation

@effigies
Copy link
Copy Markdown
Collaborator

@effigies effigies commented Feb 7, 2023

Some existing checks assumed that the NIfTI header had been interpreted, and not simply exposed as fields. This adds shape == dim[1:dim[0] + 1] and voxel_sizes == pixdim[1:dim[0] + 1], which can range in length from 0 to 7.

This permits us to do things like check min(shape) > 0, which would be more inconvenient to do directly on dim.

@effigies effigies added this to the Schema Sprint 3 milestone Feb 7, 2023
@effigies effigies requested a review from rwblair February 7, 2023 21:11
@effigies effigies added schema Issues related to the YAML schema representation of the specification. Patch version release. exclude-from-changelog This item will not feature in the automatically generated changelog labels Feb 7, 2023
@codecov
Copy link
Copy Markdown

codecov bot commented Feb 7, 2023

Codecov Report

Base: 88.65% // Head: 88.65% // No change to project coverage 👍

Coverage data is based on head (3ed3bb2) compared to base (193c2ad).
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1406   +/-   ##
=======================================
  Coverage   88.65%   88.65%           
=======================================
  Files          11       11           
  Lines        1084     1084           
=======================================
  Hits          961      961           
  Misses        123      123           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Copy Markdown
Collaborator

@bendhouseart bendhouseart left a comment

Choose a reason for hiding this comment

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

You close out those validator issues Chris.

Copy link
Copy Markdown
Member

@tsalo tsalo left a comment

Choose a reason for hiding this comment

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

LGTM

@effigies effigies merged commit 026379c into bids-standard:master Feb 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

exclude-from-changelog This item will not feature in the automatically generated changelog schema Issues related to the YAML schema representation of the specification. Patch version release.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants