alan-turing-institute / vivarium_population_spenser

Vivarium microsimulation tools used to model population evolution with the SPENSER project
GNU General Public License v3.0
3 stars 0 forks source link

vivarium_public_health_spenser-7 Modify the build_table function to t… #15

Closed BenjaminIsaac0111 closed 4 years ago

BenjaminIsaac0111 commented 4 years ago

…ake new fertility rate table.

-Removed redundant fertility methods from init.py and fertility module;FertilityCrudeBirthRate, FertilityDeterministic

-Changed variable representing sex from str to int to match dataset.

-Added ethnicity to population and asfr.

-Added TODO for ethnicity assignment for new births.

-Extracted and modified the build_table/build_mortality_table into build_fertility_table().

-Refactored out the redundant tests in test_add_new_birth_cohort.py for births; FertilityCrudeBirthRate, FertilityDeterministic

-Added comment suggestions for pushing config up to base config.

-Added more dummy individuals to the Testfile.csv.