v0.9.0
Pre-release
Pre-release
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