paulvangentcom / python_corona_simulation

An agent-based simulation of corona and other viruses in python
GNU General Public License v3.0
292 stars 76 forks source link

Abstraction to population #26

Closed Mokjac closed 3 years ago

Mokjac commented 3 years ago

Description

Added Population object which contains the ages of the population to population.py Updated simulation.py and demo_COVID.py to handle the object as a root instead of unrestricted access. (not that python can stop you as everything is public.) Fixes # (issue)

Type of change

Applied Design Pattern Aggregation to population.py

Other Notes

Thanks for this great program paul.