Skip to content

Commit fa001be

Browse files
committed
revert some files back to master
1 parent 76d08f5 commit fa001be

25 files changed

+139
-3221
lines changed

src/scripts/bladder_cancer_analyses/bladder_cancer_analyses_single_run.py

+22-9
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,17 @@
99
from tlo.analysis.utils import parse_log_file
1010
from tlo.methods import (
1111
bladder_cancer,
12+
care_of_women_during_pregnancy,
13+
contraception,
1214
demography,
1315
enhanced_lifestyle,
1416
healthburden,
1517
healthseekingbehaviour,
1618
healthsystem,
17-
schisto,
18-
simplified_births,
19+
labour,
20+
newborn_outcomes,
21+
postnatal_supervisor,
22+
pregnancy_supervisor,
1923
symptommanager,
2024
)
2125

@@ -34,30 +38,39 @@
3438

3539
start_date = Date(2010, 1, 1)
3640
end_date = Date(2013, 1, 1)
37-
popsize = 5000
41+
popsize = 19000
3842

3943
# Establish the simulation object
4044
log_config = {
4145
'filename': 'LogFile',
4246
'directory': outputpath,
4347
'custom_levels': {
44-
"*": logging.WARNING,
45-
'tlo.methods.bladder_cancer': logging.INFO,
46-
'tlo.methods.schisto': logging.INFO,
48+
'tlo.methods.demography': logging.CRITICAL,
49+
'tlo.methods.contraception': logging.CRITICAL,
50+
'tlo.methods.healthsystem': logging.CRITICAL,
51+
'tlo.methods.labour': logging.CRITICAL,
52+
'tlo.methods.healthburden': logging.CRITICAL,
53+
'tlo.methods.symptommanager': logging.CRITICAL,
54+
'tlo.methods.healthseekingbehaviour': logging.CRITICAL,
55+
'tlo.methods.pregnancy_supervisor': logging.CRITICAL
4756
}
4857
}
4958
sim = Simulation(start_date=start_date, seed=4, log_config=log_config)
5059

5160
# Register the appropriate modules
5261
sim.register(demography.Demography(resourcefilepath=resourcefilepath),
62+
care_of_women_during_pregnancy.CareOfWomenDuringPregnancy(resourcefilepath=resourcefilepath),
63+
contraception.Contraception(resourcefilepath=resourcefilepath),
5364
enhanced_lifestyle.Lifestyle(resourcefilepath=resourcefilepath),
5465
healthsystem.HealthSystem(resourcefilepath=resourcefilepath),
5566
symptommanager.SymptomManager(resourcefilepath=resourcefilepath),
5667
healthseekingbehaviour.HealthSeekingBehaviour(resourcefilepath=resourcefilepath),
5768
healthburden.HealthBurden(resourcefilepath=resourcefilepath),
58-
simplified_births.SimplifiedBirths(resourcefilepath=resourcefilepath),
59-
bladder_cancer.BladderCancer(resourcefilepath=resourcefilepath),
60-
schisto.Schisto(resourcefilepath=resourcefilepath)
69+
labour.Labour(resourcefilepath=resourcefilepath),
70+
newborn_outcomes.NewbornOutcomes(resourcefilepath=resourcefilepath),
71+
pregnancy_supervisor.PregnancySupervisor(resourcefilepath=resourcefilepath),
72+
postnatal_supervisor.PostnatalSupervisor(resourcefilepath=resourcefilepath),
73+
bladder_cancer.BladderCancer(resourcefilepath=resourcefilepath)
6174
)
6275

6376
# Run the simulation and flush the logger

src/scripts/calibration_analyses/analysis_scripts/analysis_cause_of_death_and_disability_calibrations.py

-6
Original file line numberDiff line numberDiff line change
@@ -474,9 +474,3 @@ def get_total_num_dalys_by_wealth_and_label(_df):
474474
output_folder=args.results_folder,
475475
resourcefilepath=Path('./resources')
476476
)
477-
478-
# apply(
479-
# results_folder=Path("outputs/long_run_all_diseases-2024-03-05T114732Z"),
480-
# output_folder=Path("outputs/long_run_all_diseases-2024-03-05T114732Z"),
481-
# resourcefilepath=Path('./resources')
482-
# )

src/scripts/calibration_analyses/scenarios/long_run_all_diseases.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def __init__(self):
2424
self.end_date = Date(2031, 1, 1) # The simulation will stop before reaching this date.
2525
self.pop_size = 20_000
2626
self.number_of_draws = 1
27-
self.runs_per_draw = 1
27+
self.runs_per_draw = 10
2828

2929
def log_configuration(self):
3030
return {

0 commit comments

Comments
 (0)