davidrpugh / population-ecology-approach

0 stars 2 forks source link

Refactor symbolics.py into OOP #38

Closed davidrpugh closed 9 years ago

davidrpugh commented 10 years ago

Refactoring the symbolic equations into an OOP structure will make it much easier to swap out the functional form for S. Also code will be easier to maintain. Will need to re-write tests.

davidrpugh commented 10 years ago

OK, this is basically done. Results look very reasonable. One can easily swap out functional forms for SGA and Sga at will.

davidrpugh commented 10 years ago

I am considering creating a FamilyUnit class. Code is getting quite messy with just a single Model class. Additionally, from issue #37 it appears that we need to keep track of the distribution of family units in order to easily compute population shares of adult females. Creating a separate class for each family unit will make it easier to keep track of the distribution of families.

davidrpugh commented 9 years ago

Done and merged with master.