Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to Python >3.9, numpy >2.0, support SNIRF 1.2.0-development #51

Merged
merged 45 commits into from
Dec 31, 2024

Conversation

sstucker
Copy link
Contributor

@sstucker sstucker commented Dec 26, 2024

  • Upgrade to numpy 2.0, which requires Python >3.9
  • QoL improvements to gen: opt out of cached spec use, schema order verification
  • 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)
  • No longer uses tempfile as backend for in-memory SNIRF objects, uses h5py backend instead
  • Enhancement: measurementList(s) are now validated against probe shape, >0
  • Fix: Groups are now deleted from files on disk with save-as
  • Enhancement: dataType and dataTypeLabel now validated against recognized values from specification appendix

sstucker and others added 30 commits December 26, 2024 13:12
…ular dimensions (such as those produced by MATLAB) beyond the specified ndim. dataOffset and measurementList support added but not fully functional based on current official spec
@sstucker sstucker changed the title Upgrade to Python >3.9, numpy >2.0 Upgrade to Python >3.9, numpy >2.0, support SNIRF 1.2.0-development Dec 31, 2024
@sstucker sstucker merged commit 6369714 into BUNPC:main Dec 31, 2024
@sstucker
Copy link
Contributor Author

Resolves #47, #48 and #49

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant