Fixed a bug related to the precise breaks
Triggered by ARIA tool:
About the problem of 500 it is showing when there are breaks (the back-end seems not to check correctly that a break is inside a timeframe, but maybe I am wrong).
This MR fixes a bug related to the precise bugs on the different populations (infected
vs exposed
). Before, the conditional logic was only considering the presence time of the infected
population, while it should be the presence either the infected
and exposed
. Tests were updated accordingly.
Expected structure of specific_breaks
:
"specific_breaks": {
"exposed_breaks": [
{
"start_time": "hh:mm",
"finish_time": "mm:hh"
}, ...
],
"infected_breaks": [...],
}
Each of the input should be within the simulation time of the respective population.