scverse / scanpy

Single-cell analysis in Python. Scales to >1M cells.
https://scanpy.readthedocs.io
BSD 3-Clause "New" or "Revised" License
1.93k stars 603 forks source link

Switch to `numpy.random.Generator` #3371

Open flying-sheep opened 1 week ago

flying-sheep commented 1 week ago

Plan: SPEC7 (switch to rng: np.random.Generator | int args, phase out random_state: RandomState | int)

Implementation:

  1. 3372

  2. Implement transition tools and manually transistion in #943
  3. Decorator for functions that transition