Skip to content

Fix NumPy 1.x and 2.x pickle compatibility#82

Open
vanshapple wants to merge 2 commits into
brian-team:masterfrom
vanshapple:fix-numpy2-compatibility
Open

Fix NumPy 1.x and 2.x pickle compatibility#82
vanshapple wants to merge 2 commits into
brian-team:masterfrom
vanshapple:fix-numpy2-compatibility

Conversation

@vanshapple
Copy link
Copy Markdown

Summary

This PR fixes NumPy 1.x and 2.x compatibility issues related to serialization and pickle loading in brian2tools.

Changes

  • Added compatibility remapping for NumPy internal module paths during unpickling
  • Implemented portable serialization helpers for cross-version pickle support
  • Added serialization round-trip tests for NumPy 1.x and 2.x compatibility
  • Added helper APIs for saving/loading exported runs

Testing

  • Tested locally with NumPy 1.x
  • Tested locally with NumPy 2.x
  • Existing serialization tests pass successfully

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant