pylhc / omc3

Python 3 codes for beam optics measurements and corrections in circular particle accelerators

Home Page:https://pylhc.github.io/omc3/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Setting NumPy seeds in tests

lmalina opened this issue · comments

When we set globally the NumPy seeds. The actual seed used is order dependent (the order in which the tests are collected and run), as the setting happens at the time of test collection. This is just to be aware of this in future, it is not a problem now.

Both test_harpy and test_measure_optics now define the seeds during the setup of each test function and not globally anymore.
As such, any future tests should follow this example and this issue could be closed then.