Releases: BUNPC/pysnirf2
Releases · BUNPC/pysnirf2
v0.9.0
To be released with SNIRF v1.2.0
Fixes
copy()
no longer creates a file on disk, it creates a temp file as intended- Fix to
logging
call, pass string instead of multiarg - Switch from unittest to pytest (Thanks @larsoner)
- Fix unsigned HDF5 integer types not being counted as integers. Note that no distinction is made in the SNIRF spec, for better or worse
- Change in the way dataset shape is validated
- Groups are now deleted from files on disk with save-as
- No longer uses
tempfile
as backend for in-memory SNIRF objects, uses h5py backend instead
Features
- new
__main__
interface for validating a file. - support
measurementLists
anddataOffset
from SNIRF 1.2.0-development measurementList_to_measurementLists
andmeasurementLists_to_measurementLists
conversion utility functions- moduleIndex removed from library and test data (it raises a warning if present)
- On write, correct arrays with erroneous single dimensions (e.g. 1D arrays written as column vectors by MATLAB hdf5 functions)
measurementList(s)
are now validated against probe shape, >0dataType
anddataTypeLabel
now validated against recognized values from specification appendix
Development changes
- header.py and footer.py redundancy removed. Now, jinja template is inserted into pysnirf2. Be careful not to overwrite your changes during this process if something goes wrong!
- Tests are only run when snirf/ or tests/ directories are touched in a commit.
- QoL improvements to
gen
: opt out of cached spec use, schema order verification
What's Changed
Full Changelog: v0.8.0...v0.9.0
v0.8.0
v0.7.4
This release marks the migration to the PyPI remote "snirf". v0.7.3 is available via pysnirf2, but further releases will be available via snirf only.
*Official update to match Snirf v1.1
- Bug fixes
copy
method forSnirf
, which creates a copy of the entire file based on virtual HDF5 file in memory.- Assignment to Groups and indexed Group elements.
- Validator accepts both 1D and 2D
sourceLabels
- Various new tests, including one for multidimensional aux released in v1.1
- Additional test data
- Test docstrings
- Lint and formatting in gen script