- Allows values to be assigned to a
NXlinkobject using thenxlinkattribute, including updating a linked object's value via a dictionary assignment.- Adds auxiliary signals to virtual datasets created by
nxconsolidate, and allows links to be added to auxiliary signals defined by aNXdatagroup'sauxiliary_signalsattribute. - Adds a
set_datefunction to theNXprocessclass to update the stored processing date. - Improves the efficiency of the
NXfieldindex function when selecting slices with smart indices. - Includes the offending key or path in
NXgrouperror messages to make lookup failures easier to diagnose. - Fixes deserialization of fields containing variable-length strings.
- Fixes unreliable handling of
dtypearguments when creating aNXvirtualfield. - Fixes decoding of fields containing non-UTF-8 encoded strings, using the
chardetpackage to detect the correct encoding. - Preserves the relative file path when copying an external link, instead of converting it to an absolute path.
- Fixes the regular expression used to validate NeXus object names.
- Fixes the
natural_sortfunction to handle path-like objects. - Keeps the file mode as
'rw'after callingsave()or when using aNXrootcontext manager. - Fixes a bug when copying virtual datasets.
- Fixes a crash when reading a lazy-loaded field that had been rewrapped in a new container at the same file path.
- Releases the file lock even if closing the underlying HDF5 file raises an error.
- Adds auxiliary signals to virtual datasets created by
What's Changed
- Modernize dev dependency config by @rosborn in #255
- Improve serialization by @rayosborn in #256
- Add ruff linting and update CI to match nexpy by @rosborn in #257
- Update copyright dates by @rayosborn in #258
- Fix link deepcopy by @rayosborn in #259
- Allow-linkfield-assignments by @rayosborn in #260
- Improve-encoding-detection by @rayosborn in #261
- Improve efficiency of the NXfield index function by @rayosborn in #262
- Miscellaneous-fixes by @rayosborn in #263
- Skip self-copy when reading uncopied lazy-loaded field by @rayosborn in #264
- Release file locks on close failure and clarify path errors by @rayosborn in #265
- Bump actions/checkout from 6 to 7 by @dependabot[bot] in #266
New Contributors
Full Changelog: v2.0.2...v2.0.3