Repeatability of InfiniteAtmosphericLayer
ehpor opened this issue · comments
Emiel H. Por commented
By Payam Parvati,
Expectation: the InfiniteAtmosphericLayer should return the same phase screen every time.
Actual result: the InifiniteAtmosphericLayer returns a different atmospheric phase screen every time.
A quick fix with adding np.random.seed(0)
or another number, was unsuccessful, according to Payam. Another solution is to add a RandomState
object and get all random numbers from that state. That way, a seed can be kept local to the infinite atmospheric layer.