Closed jvansanten closed 1 week ago
Indeed.
I think this was my choice because at the time I thought we would transition to default_rng()
everywhere (see #129).
Clearly that does not work well for reproducibility unless the global seed is propagated to individual RNG objects (that can become cumbersome). But in that case the RNG should be an attribute of the object, and not be recreated at every call of the method.
Sorry this caused (unexpected) trouble. I am fine with the workaround as it seems the path of least friction.
NTSeason.simulate_background()
instantiates a fresh RNG each time it is called, using entropy from the system, whereas most (all?) of the rest of flarestack uses the global RNGnumpy.random
. Use the global RNG instead, so thatMinimizationHandler.prepare_dataset()
setting of the global seed has the intended effect.