Fixed #1112 Migrate to New NumPy Random Number Generator (RNG) API#1131
Fixed #1112 Migrate to New NumPy Random Number Generator (RNG) API#1131seanlaw wants to merge 7 commits intostumpy-dev:mainfrom
Conversation
|
Review these changes at https://app.gitnotebooks.com/stumpy-dev/stumpy/pull/1131 |
|
@NimaSarajpoor I've tested the migration on |
NimaSarajpoor
left a comment
There was a problem hiding this comment.
@seanlaw
I've left just one comment for your consideration.
|
@NimaSarajpoor If it's okay with you, I'm going to add ~5 files at a time for you to incrementally review (there are 46 test files in total and I'll need to work on tutorials and other docs too). |
|
Things are starting to get tricky. Previously, |
|
@NimaSarajpoor I added three new files for you to review |
Pull Request Checklist
Below is a simple checklist but please do not hesitate to ask for assistance!
black(i.e.,python -m pip install blackorconda install -c conda-forge black)flake8(i.e.,python -m pip install flake8orconda install -c conda-forge flake8)pytest-cov(i.e.,python -m pip install pytest-covorconda install -c conda-forge pytest-cov)black --exclude=".*\.ipynb" --extend-exclude=".venv" --diff ./in the root stumpy directoryflake8 --extend-exclude=.venv ./in the root stumpy directory./setup.sh dev && ./test.shin the root stumpy directoryTo Do List
np.randomnp.random.rand(x)withpytest.RNG.random(x)np.random.rand(x*y).reshape(x,y)withpytest.RNG.random(size=(x, y))np.random.uniform(x, y, [z])withpytest.RNG.uniform(x, y, size=z)np.random.permutation([x, y, z])withpytest.RNG.permutation([x, y, z])np.random.randint(x, y, z)withpytest.RNG.integers(x, y, z)np.random.choice([x, y], l, replace=True)withpytest.RNG.choice([x, y], l, replace=True)np.random.normal(size=x)withpytest.RNG.normal(size=x)