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

Add pickle support #44

Merged
merged 4 commits into from
Sep 11, 2024
Merged

Add pickle support #44

merged 4 commits into from
Sep 11, 2024

Conversation

jvansanten
Copy link
Collaborator

It is sometimes useful to pass (small) spline tables between processes using pickle serialization. Add a simple __getstate__/__setstate__ pair that writes to and reads from a byte string. Along the way, fix up pysplinetableType's tp_name to match the name actually exposed to Python.

@jvansanten jvansanten merged commit c6fb3ea into master Sep 11, 2024
12 checks passed
@jvansanten jvansanten deleted the pickle-support branch September 11, 2024 12:08
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