InstituteforDiseaseModeling / covasim

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

Apply aggregate in analysis.py #346

Closed ixuh12 closed 3 years ago

ixuh12 commented 3 years ago

PROBLEM The structure of code in analysis.py can be more clear so that people can better understand it. I applied aggregations to this part of the code so that makes the code more structural.

CHANGE I create a new class Compute and move all the functions about computing into that class. Therefore when people use those functions, they can just call the Compute class.