Skip to content

Commit

Permalink
calibration update
Browse files Browse the repository at this point in the history
  • Loading branch information
joehcollins committed Jan 20, 2025
1 parent 075f65a commit 89b71eb
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 24 deletions.
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def __init__(self):
self.start_date = Date(2024, 1, 1)
self.end_date = Date(2025, 1, 2)
self.pop_size = 40_000
self.number_of_draws = 5
self.number_of_draws = 1
self.runs_per_draw = 60

def log_configuration(self):
Expand Down Expand Up @@ -46,23 +46,21 @@ def modules(self):
mnh_cohort_module.MaternalNewbornHealthCohort(resourcefilepath=self.resources)]

def draw_parameters(self, draw_number, rng):
if draw_number == 0:
return {'PregnancySupervisor': {
'analysis_year': 2024}}

else:
interventions_for_analysis = ['post_abortion_care_core', 'post_abortion_care_core',
'iv_antihypertensives', 'iv_antihypertensives']

avail_for_draw = [0.0, 1.0,
0.0, 1.0,
]

# if draw_number == 0:
# return {'PregnancySupervisor': {
# 'analysis_year': 2024}}
#
# else:
# interventions_for_analysis = ['post_abortion_care_core', 'post_abortion_care_core',
# 'iv_antihypertensives', 'iv_antihypertensives']
#
# avail_for_draw = [0.0, 1.0,
# 0.0, 1.0,
# ]
#
return {'PregnancySupervisor': {
'analysis_year': 2024,
'interventions_analysis': True,
'interventions_under_analysis':[interventions_for_analysis[draw_number-1]],
'intervention_analysis_availability': avail_for_draw[draw_number-1]}}
'analysis_year': 2024}}


if __name__ == '__main__':
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,10 @@ def summarize_confidence_intervals(results: pd.DataFrame) -> pd.DataFrame:

return summary

scenario = 'cohort_scenario_201657'
scenario = 'cohort_scenario_261873'
results_folder= get_scenario_outputs(scenario, outputspath)[-1]

interventions =['pph_treatment_surg', 'post_abortion_care_core', 'birth_kit', 'caesarean_section']
interventions =['post_abortion_care_core', 'iv_antihypertensives']

int_analysis = ['baseline']

Expand Down

0 comments on commit 89b71eb

Please sign in to comment.