Skip to content

Check NXfield arguments#252

Merged
rayosborn merged 4 commits intonexpy:mainfrom
rayosborn:check-NXfield-arguments
Feb 17, 2026
Merged

Check NXfield arguments#252
rayosborn merged 4 commits intonexpy:mainfrom
rayosborn:check-NXfield-arguments

Conversation

@rayosborn
Copy link
Contributor

  • Prevent addition of NXfield attributes with keyword arguments set to None.
  • Updates base classes.

This is not yet ratified by the NIAC, but it is currently in use in the NXRefine package.
This prevents such arguments from being added to the attributes, e.g., `field=NXfield(1.0, units=None)` will no longer save a units attribute containing an empty string.
@rayosborn rayosborn merged commit c43b3d5 into nexpy:main Feb 17, 2026
15 checks passed
@rayosborn rayosborn deleted the check-NXfield-arguments branch February 17, 2026 17:40
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.

1 participant

Comments