acabaniss / py-households

Pythonic ABM for household demography in the Mediterranean
0 stars 1 forks source link

Other people #20

Closed acabaniss closed 4 years ago

acabaniss commented 4 years ago

This allows subclasses of Person to be created and reproduce themselves within the model. Check out SubclassDeterministicExample for a short demo, and let me know if this works as expected. You should be able to 1) create a subclass of Person, 2) define new behaviors, and 3) find that even past the first generation those behaviors/attributes/etc. still propagate.

scampau commented 4 years ago

This works for me. Very clear.

evandrow commented 4 years ago

All good on my end. The generation counter was easy to follow.

acabaniss commented 4 years ago

Ok great! In that case I'll go ahead and merge/close this. Thanks for checking it out!