Skip to content

Releases: BUNPC/pysnirf2

v0.9.0

31 Dec 20:05
6369714
Compare
Choose a tag to compare
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 and dataOffset from SNIRF 1.2.0-development
  • measurementList_to_measurementLists and measurementLists_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, >0
  • dataType and dataTypeLabel 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

  • Upgrade to Python >3.9, numpy >2.0, support SNIRF 1.2.0-development by @sstucker in #51

Full Changelog: v0.8.0...v0.9.0

v0.8.0

28 May 17:18
18eb3b7
Compare
Choose a tag to compare

What's Changed

New Contributors

v0.7.4

04 Aug 16:52
Compare
Choose a tag to compare

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 for Snirf, 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

v0.6.2

30 Jun 17:11
faa724a
Compare
Choose a tag to compare

v0.6.2