AOtools / aotools

A useful set of tools for Adaptive Optics in Python
GNU Lesser General Public License v3.0
109 stars 42 forks source link

Change how random seeds work in phase screens, fix for #61 #81

Closed ojdf closed 2 years ago

ojdf commented 2 years ago

Changed from using numpy.random.seed to numpy.random.default_rng(seed) , which creates a generator object that is used to generate the random numbers.

Passing a seed to an infinite phase screen now results in deterministic behaviour when add_rows() is called.