Recent Releases of pysnirf2

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 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 https://github.com/BUNPC/pysnirf2/pull/51

Full Changelog: https://github.com/BUNPC/pysnirf2/compare/v0.8.0...v0.9.0

- Python
Published by sstucker over 1 year ago

pysnirf2 - v0.8.0

What's Changed

  • BUG: Fix bug with logger call by @larsoner in https://github.com/BUNPC/pysnirf2/pull/39
  • -- Fix unsigned HDF5 integer types not being counted as integers. by @jayd1860 in https://github.com/BUNPC/pysnirf2/pull/40
  • Developer friendly rework by @sstucker in https://github.com/BUNPC/pysnirf2/pull/41
  • MAINT: Numpy 2.0 compat by @larsoner in https://github.com/BUNPC/pysnirf2/pull/43

New Contributors

  • @jayd1860 made their first contribution in https://github.com/BUNPC/pysnirf2/pull/40

- Python
Published by sstucker almost 2 years ago

pysnirf2 -

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

- Python
Published by sstucker over 3 years ago

pysnirf2 - v0.6.2

v0.6.2

- Python
Published by sstucker almost 4 years ago