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

fix picklability of sliced function array #834

Merged
merged 1 commit into from
Nov 29, 2023
Merged

Conversation

gertjanvanzwieten
Copy link
Contributor

@gertjanvanzwieten gertjanvanzwieten commented Oct 20, 2023

This PR changed the implementation of _takeslice such that it wraps evaluable.Range directly rather than a lambda function, which caused the resulting array to not be picklable. A unit test is added to safeguard against similar mistakes in future.

This patch changed the implementation of _takeslice such that it wraps
evaluable.Range directly rather than a lambda function, which caused the
resulting array to not be picklable. A unit test is added to safeguard against
similar mistakes in future.
@gertjanvanzwieten gertjanvanzwieten merged commit b9f4b32 into master Nov 29, 2023
21 checks passed
@joostvanzwieten joostvanzwieten deleted the pickleslice branch February 27, 2024 10:27
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.

2 participants