Closed dkirkby closed 6 years ago
Yes. lines 710 and 711 of instrument.py, random offsets. You would need to set a random seed to get reproducible results.
Hi, @dkirkby @julienguy we face to this issue, or a related one, by looking at the reproducibility of quasar spectra with DLAs features. See desihub/desisim#386. Attempting to solve such issue I made a branch of specsim: test_repr_qquasar which modifies only the generate_random_noise function in simulator.py. What tests do you suggest to make to see if this affects other applications? or to corroborate such modifications makes sense? Thanks
The generate_random_noise
function should give reproducible results if you pass in a np.random.RandomState()
object.
This issue refers to random centroid offsets that are currently not reproducible. You can test if this is the source of the problem you are seeing by setting instrument.offset.sigma1d
to zero in your specsim config.
Running the following command twice gives similar but not identical results, which I wasn't expecting:
For example:
and
@julienguy Is this perhaps a "feature" of the new fastsim method calculating fiberloss? Do you use any random numbers?