Skip to content

Migrate to New NumPy Random Number Generator (RNG) API #1112

@seanlaw

Description

@seanlaw

See NumPy Reference

Currently, STUMPY still uses the legacy way of drawing random numbers. We should migrate to the new Generator.

This should include updating:

  1. All code
  2. All unit tests
  3. All docstrings
  4. All examples
  5. All tutorials
  6. All README

This issue is the precursor for #707

Things to change:

RNG = np.random.default_rng()

@pytest.fixture(scope="module")
def rng_state():
    yield RNG.bit_generator.state

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions