Skip to content
This repository was archived by the owner on Mar 24, 2025. It is now read-only.
This repository was archived by the owner on Mar 24, 2025. It is now read-only.

Migrate from np.random.RandomState to np.random.Generator #5

@thomas-a-neil

Description

@thomas-a-neil

It looks like random.RandomState has been sunset https://numpy.org/doc/stable/reference/random/legacy.html, and np.random.Generator is the new interface. A future PR can move them all over.

Then, instead of subsetting indexes and selecting, we can directly do subset = rng.choice(set)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions