pyprep
pyprep copied to clipboard
Move towards `np.random.default_rng`
We are still using numpy's old random API in many places. It would be good to migrate to the recommended np.random.default_rng.
This might turn out to be difficult, given our many tests that need to remain compatible with matlab, etc.
xrefs:
- https://github.com/a-hurst/matprep_artifacts/tree/master
- https://github.com/mne-tools/mne-python/issues/12780
cc @a-hurst