Skip to content

Commit 3f1115b

Browse files
joehcollinstdm32tbhallett
authored
Updates/fixes to MNH modules following on from Joe's PhD (#1251)
* prepare HIV and TB modules for PR * merge in edited hiv and tb files * remove hv_vmmc_counter property * check tb and hiv tests * flake8 checks * Change clustering of tb in hiv+ Change tb mortality rate to 2011-2018 values (increased) Add infant NVP Change relative proportions of imported vs transmitted tb Tb active case poll assigns cases within that month (not that year) Same for importation event which runs monthly Importation rate and transmission rate roughly calibrated * use parameter for importation rate not value * HIV infant NVP - cap repeat visits at 5 return blank appt footprint if child is not eligible * test runs * cap repeat infant NVP appts at 5 track repeat visits within event call * add referred_from and repeat_visits arguments to HSI_Hiv_StartInfantProphylaxis * edit infant NVP follow-up date * fixes to failing tests * fixes to failing tests * Updates to resource files with amended parameter values and new parameters added * Edits to antenatal healthcare code to ensure that coverage of inpatient interventions can be manipulated by scenario files. Also added fix which prevents higher coverage of AN inpatient care significantly increasing stillbirths * edit ipt coverage rates to ensure sims can run to 2099 * edit test_hiv_tb_scenarios.py to get correct IPT coverage for children * refer ART to level 2 if unsuccessful at level 1a reset baseline active tb across 2010, transmission poll starts 2011 * change importation rate to 10/100,000 mdr importation rate 1.86% of this * add fix to test_hiv_tb_scenarios.py * edits to pregnancy_supervisor.py in order to conduct sensitivity analysis with min/max availability of antenatal care * fix error caused by resetting ps_antepartum_haem * updating pregnancy_helper_functions.py. Fixes to repeat risk of death application, analysis functionality added. * added updated call to check_if_delayed_careseeking * update labour.py analysis event and analysis parameters * update labour.py logging and remove redundant parameters * final labour.py updates * fix error in labour_lm.py * small updates in postnatal_supervisor.py including removing redundant properties * removing redundant properties * removing redundant properties * Adding sensitivity scenario scripts * updating analysis scripts * updates to met_need.py * fixes to analysis_utility_functions.py to produce required outputs * finalising calibration analysis scripts * updating scenario files params * increased CFR for uterine rupture as MMR for that comp is low * fixes to paed continual ART referrals * fixes to paed continual ART referrals * check hv_art status correctly in TestAndRefer * Fixes to failing tests from maternal health modules * add catch if person is HIV diagnosed, do not schedule another HIV test in the TB test event * add condition not to run TB test in HIV HSI if TB already diagnosed * add condition don't run newborn testing if newborn_outcomes registered * HIV test not repeated if last test within one week in TB testing, no referral for HIV test if previous HIV test within one week edit tests to use new property tb_date_tested remove TB property tb_ever_tested * test_tb.py change end-date in test_basic_run_with_default_parameters as no active cases after 2011 with very small population * test_tb.py change end-date in test_basic_run_with_default_parameters as no active cases after 2011 with very small population * Comments added to newborn_outcomes.py to remember to update * update to stillbirth and APH calibration * use random date scheduling for TB screening HSI * updates to baseline and uhc scenarios to do analysis for abstract * correct parameter value error for treatment effect of IFA supplementation * correct parameter value error for treatment effect of blood transfusion for anaemia * add fix to test_tb.py to make prop_smear_positive=1 for purposes of test * edits to sepsis calibration and to calibration script * edits to sepsis calibration and to calibration script * update calibration script seed * fixed error in parameters introduced during calibration. update calibration script * fixed error in parameters introduced during calibration. update calibration script * update to fix parameter calibration * final specifications for scenario files * Updated resource files with parameter changes * Fix to labour.py to ensure surgery for failed RP treatment. Fix that caused variation between runs when doing SBA min analysis. Updates to comments * Fixed DALY weight acquisition for newborns. Update logic for ROP * Small fixes and logging updates to pregnancy_supervisor.py * updates to analysis scripts * updates to calibration scripts * fix failing newborn test relating to new retinopathy logic * updated seeds for scenario files * fixed error in quantiles * fixed error in quantiles * fixed error in quantiles * fixed error in quantiles * fixed error in quantiles * updated scenario files * updated analysis scripts * update prob_delay_ parameter * update rr_still_birth_ur parameter * update retionopathy and miscarriage params * update resus treatment effects * updated mean_birth_weights params * updates to consumables * updates to consumables * update enceph_cfr_multiplier * add in logic for the effect of obesity on potl * add in updated newborn resus logic * add in updated newborn resus logic * add in updated newborn resus logic * cord care provisional on birth kit consumables * update KMC logic * update KMC logic * update KMC logic * update neonatal pnc logic so care seeking is higher for all neonates with complications * update logic relating to ANC qual parameters * update so that inpatient care level corresponds with referal level * update so that inpatient care level corresponds with referal level * update calibration file * update analysis event in pregnancy supervisor * fix to error in newborn outcomes * fix to error in newborn outcomes * fix to error in newborn outcomes * calibration updates * calibration updates * calibration updates * calibration updates * calibration updates * calibration updates * calibration updates * calibration updates * calibration updates * calibration updates * fixes to tests * fixes mistake to cs baseline assumption * fixing errors * fixing errors for pph incidence * fixing errors for pph incidence * fixed obstructed labour error * fix to cause delay in PPH treatment * analysis script update * analysis script update * flake8 * remove unneeded logic from did_not_run functions * fix * tidying branch * tidying comments * flake8 * update to calibration script * update to thesis analysis script * typo * fixed classification of post term pregnancies * fixed application of anaemia risk * fixed effect of delays on PPH interventions * additional fix to anaemia logic * calibration scripts * calibration scripts * calibration scripts * fixed syntax error * removed uncalled parameters. Updated ResourceFile_Improved_Healthsystem_And_Healthcare_Seeking.xlsx to remove parameters that no longer exsist * Updated ResourceFile_Improved_Healthsystem_And_Healthcare_Seeking.xlsx to remove parameters that no longer exsist * Updated ResourceFile_Improved_Healthsystem_And_Healthcare_Seeking.xlsx to remove parameters that no longer exsist * Fixes for failing tests * Removal of all internal delay/squeeze factor logic from the MNH modules * removed uncalled parameter from resource file * fix MNH calibration script to meet new pandas requirements * fix MNH analysis script to meet new pandas requirements * add fix to calibration script to correctly output births * flake8 * update priority policy resource file to include new treatment ids * flake8 * flake8 * fix failing health system test --------- Co-authored-by: tdm32 <[email protected]> Co-authored-by: Tim Hallett <[email protected]>
1 parent 55209f4 commit 3f1115b

File tree

50 files changed

+6419
-6161
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+6419
-6161
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:ca50e2faae485c8a94530f4ea58527fe7ff03b07325906e1370293ca2c76e725
3-
size 19163
2+
oid sha256:4da00560fd62d440d90dd3f054d999370a9cb3a83dd5516347ba8edef8275662
3+
size 19087
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:e4d9c48c88403b1a45bd7c4f983b228c683ea2597a6a02fc2469d2ec955d8724
3-
size 48646
2+
oid sha256:f18f5a91e48fc846c332b55f1742d148816b1fee08ee34383c9995ea36dafdb3
3+
size 48167
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:ec9d0ba4a57f63837aaf62ba38a687a44c4644ae0faa63268a94a43f3c96f399
3-
size 29060
2+
oid sha256:ebd3aff1d77254f7cd7bb1dc019e2e6a86700dcd6009cecd11a70da4b85a3c93
3+
size 31777
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:01b597c608142d004dbc4fe97aecf26c9482c0dc686e1226736a46ca5d3b9580
3-
size 15346
2+
oid sha256:f81564a2128891c5e97da78a6d8dd63819016857d5ef9817993874002cb2a658
3+
size 15349
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:838ceb0f673d1ab51b803011e1c60c2c77349cc51c9bc7d8667646262f03c9a2
3-
size 22195
2+
oid sha256:28757e4b9e6ffc0f0d12e8a76d4b4ac6704ce5bcbe781ec0c0d99bdce852cf04
3+
size 22888
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:85728a4c6971c3641300baa5b3843d8a1d3774b4d6c9f7133223d0bdfd361332
3-
size 22075
2+
oid sha256:fbd0974016b374a3286e379ef3cb1f297307ef410880c3f902e9439194a6d37d
3+
size 22225
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:88a459c5b66dd7d6f5a6d5597577cbe5c0892463302da69ec7a0d19183f11f62
3-
size 33223
2+
oid sha256:ebfc8af480d9bea1c5321c16acfc64e9ed0a90dea1c15c8a21eb692715ffcf0f
3+
size 42109

src/scripts/maternal_perinatal_analyses/analysis_scripts/analysis_utility_functions.py

Lines changed: 154 additions & 576 deletions
Large diffs are not rendered by default.

src/scripts/maternal_perinatal_analyses/analysis_scripts/checking_dalys_output.py

Lines changed: 0 additions & 168 deletions
This file was deleted.

0 commit comments

Comments
 (0)