ehpor / hcipy

A framework for performing optical propagation simulations, meant for high contrast imaging, in Python.

Home Page:https://hcipy.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Repeatability of InfiniteAtmosphericLayer

ehpor opened this issue · comments

By Payam Parvati,

image

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.