SciCompMod / memilio

Modular spatio-temporal models for epidemic and pandemic simulations
https://scicompmod.github.io/memilio/
Apache License 2.0
52 stars 15 forks source link

Change return type of check_constraints function in the Populations class to bool #1061

Open lenaploetzke opened 5 days ago

lenaploetzke commented 5 days ago

Motivation / Current Behaviour

The check_constraints and apply_constraints functions in the Population class are currently not tested.

Enhancement description

If the return type is changed to bool (as in the check_constraints function of all parameter classes), you could easily test them. The check_constraints function of CompartmentalModel could also return a bool.

Additional context

No response

Checklist