Open paddyroddy opened 1 week ago
We generally have rng
support for all user functions, so these should be "safe" to update in examples and tests only.
Random number generation more widely will be one of the issues to solve for generic array support, so might be good to keep that in mind as well.
Is Your Feature Request Related to a Problem? Please Describe
See explanation here https://docs.astral.sh/ruff/rules/numpy-legacy-random, have verified on the codebase with
ruff check --select NPY002 .
, there are 12 errors at the moment. These had support dropped fromnumpy==1.16
Describe the Solution You'd Like
Use syntax like this instead
Describe Alternatives You've Considered
No response
Additional Context
No response