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

First aggregation implementation in population.py #44

Closed ghost closed 3 years ago

ghost commented 3 years ago

The purpose of this PR is to find areas in the project in which aggregation can be applied to. Considering population.py, I considered the function initialize_population to be a case for aggregation. The change was taken by placing the function inside a new class InitPopulation, and being a single entity aggregate it's root is the single function inside.

This was just my take on the task, and I apologize if it isn't quite what you wanted for the project.