Repository navigation
BUG: Ensure seed sequences are restored through pickling (#26260) - #26293
Merged
Merged
Conversation
Explicity store and restore seed sequence closes numpy#26234 --- * BUG: Ensure seed sequences are restored through pickling Explicity store and restore seed sequence closes numpy#26234 * CLN: Simplify refactor Make more use of set and getstate to avoid changes in the pickling functions * BUG: Correct behavior for legacy pickles Add test for legacy pickles Include pickles for tests * MAINT: Correct types for pickle related functions * REF: Switch from string to type * REF: Swtich to returning bit generators Explicitly return bit generator rather than ctor
Member
Author
|
Hmm, the test failures are all on Python 3.9 and seem to involve typing. |
Member
Author
|
I think the easiest thing here is to just leave this for NumPy 2.1.0, which isn't that far off. |
Member
Author
|
@BvB93 Any thoughts about what changed between Python 3.9 and 3.10? |
BvB93
reviewed
Apr 17, 2024
Co-authored-by: Bas van Beek <[email protected]>
Member
Author
|
Thanks Bas. This change is probably needed in main as well because we still support Python 3.10. EDIT: python |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport of #26260.
Explicity store and restore seed sequence
closes #26234
Explicity store and restore seed sequence
closes #26234
Make more use of set and getstate to avoid changes in the pickling functions
Add test for legacy pickles
Include pickles for tests
MAINT: Correct types for pickle related functions
REF: Switch from string to type
REF: Swtich to returning bit generators
Explicitly return bit generator rather than ctor