Replaces calls to the builtin random module to equivalent calls to the numpy.random module. This allows to set the random seed once and for all with numpy.random.seed().
Adds a test running a single simulation and comparing resulting yearly prevalence against reference values.
The test (tests/test_single_simulation) is based on Example_Run.py. It uses a set seed value and compares output prevalence across the whole population against reference values stored in the tests/data directory. The same script can be used to update
the reference values at a later stage:
This
random
module to equivalent calls to thenumpy.random
module. This allows to set the random seed once and for all withnumpy.random.seed()
.The test (
tests/test_single_simulation
) is based onExample_Run.py
. It uses a set seed value and compares output prevalence across the whole population against reference values stored in thetests/data
directory. The same script can be used to update the reference values at a later stage: