Closed Oswald522 closed 1 year ago
Confirmed. Thanks for the code example. I'll look at this in the afternoon.
I may have found something useful. The results differ due to the reset function in the hcipy/atmosphere/finite_atmospheric_layer.py
file, specifically the self._noise = self.noise_factory.make_random() function.
Or it could be changed to self._noise = self.noise_factory.make_random(self.rng)
.
I am not very familiar with hcipy, so I hope I am not giving you inaccurate information.
Thanks for your outstanding works. I have read the #169 and #173 When using the
layer.reset()
, I cannot get the initial state(Expectation: the InfiniteAtmosphericLayer hould return the same phase screen every time.). or maybeprint(layer.phase_for(1))
should be same?. the code follows:and the outputs vary every time
Is there anything wrong?