InstituteforDiseaseModeling / covasim

COVID-19 Agent-based Simulator (Covasim): a model for exploring coronavirus dynamics and interventions
https://covasim.org
MIT License
254 stars 223 forks source link

Applying Aggregate to run.py 01 #350

Closed kp43 closed 2 years ago

kp43 commented 3 years ago

Please note that this change is for a school project on Applying Aggregates. So please bear with me.

The problem that I noticed is that there is no clear design in run.py to make sure that the design follows a consistent valid state for each iteration. Therefore I implemented an aggregate to make sure that run.py follows a valid state before moving on to the caller methods.