tlo package
Subpackages
- tlo.analysis package
- Submodules
- tlo.analysis.hsi_events module
is_valid_hsi_event_subclass()
get_hsi_event_classes_per_module()
get_details_of_defined_hsi_events()
sort_hsi_event_details()
format_hsi_event_details_as_csv()
format_hsi_event_details_as_table()
format_hsi_event_details_as_list()
merge_hsi_event_details()
get_all_defined_hsi_events_as_dataframe()
main()
- tlo.analysis.life_expectancy module
- tlo.analysis.utils module
parse_log_file()
merge_log_files()
write_log_to_excel()
make_calendar_period_lookup()
make_calendar_period_type()
make_age_grp_lookup()
make_age_grp_types()
to_age_group()
get_scenario_outputs()
get_scenario_info()
load_pickled_dataframes()
extract_params()
extract_results()
summarize()
get_grid()
format_gbd()
create_pickles_locally()
compare_number_of_deaths()
flatten_multi_index_series_into_dict_for_logging()
unflatten_flattened_multi_index_in_logging()
LogsDict
get_filtered_treatment_ids()
colors_in_matplotlib()
get_coarse_appt_type()
order_of_coarse_appt()
get_color_coarse_appt()
order_of_short_treatment_ids()
get_color_short_treatment_id()
order_of_cause_of_death_or_daly_label()
get_color_cause_of_death_or_daly_label()
squarify_neat()
get_root_path()
bin_hsi_event_details()
compute_mean_across_runs()
plot_stacked_bar_chart()
plot_clustered_stacked()
get_mappers_in_fullmodel()
get_parameters_for_status_quo()
get_parameters_for_standard_mode2_runs()
get_parameters_for_improved_healthsystem_and_healthcare_seeking()
mix_scenarios()
- tlo.analysis.hsi_events module
- Module contents
- Submodules
- tlo.logging package
- tlo.methods package
- Submodules
- tlo.methods.alri module
- Overview
Alri
AlriPollingEvent
AlriIncidentCase
AlriNaturalRecoveryEvent
AlriCureEvent
AlriDeathEvent
HSI_Alri_Treatment
AlriLoggingEvent
AlriCheckPropertiesEvent
AlriIndividualLoggingEvent
AlriPropertiesOfOtherModules
AlriIncidentCase_Lethal_DangerSigns_Pneumonia
AlriIncidentCase_NonLethal_Fast_Breathing_Pneumonia
- tlo.methods.bed_days module
- tlo.methods.bladder_cancer module
- tlo.methods.breast_cancer module
- tlo.methods.cancer_consumables module
- tlo.methods.cardio_metabolic_disorders module
CardioMetabolicDisorders
CardioMetabolicDisorders_MainPollingEvent
CardioMetabolicDisordersEvent
CardioMetabolicDisordersDeathEvent
CardioMetabolicDisordersWeightLossEvent
CardioMetabolicDisorders_LoggingEvent
HSI_CardioMetabolicDisorders_CommunityTestingForHypertension
HSI_CardioMetabolicDisorders_Investigations
HSI_CardioMetabolicDisorders_StartWeightLossAndMedication
HSI_CardioMetabolicDisorders_Refill_Medication
HSI_CardioMetabolicDisorders_SeeksEmergencyCareAndGetsTreatment
- tlo.methods.care_of_women_during_pregnancy module
CareOfWomenDuringPregnancy
HSI_CareOfWomenDuringPregnancy_FirstAntenatalCareContact
HSI_CareOfWomenDuringPregnancy_SecondAntenatalCareContact
HSI_CareOfWomenDuringPregnancy_ThirdAntenatalCareContact
HSI_CareOfWomenDuringPregnancy_FourthAntenatalCareContact
HSI_CareOfWomenDuringPregnancy_FifthAntenatalCareContact
HSI_CareOfWomenDuringPregnancy_SixthAntenatalCareContact
HSI_CareOfWomenDuringPregnancy_SeventhAntenatalCareContact
HSI_CareOfWomenDuringPregnancy_EighthAntenatalCareContact
HSI_CareOfWomenDuringPregnancy_FocusedANCVisit
HSI_CareOfWomenDuringPregnancy_PresentsForInductionOfLabour
HSI_CareOfWomenDuringPregnancy_AntenatalWardInpatientCare
HSI_CareOfWomenDuringPregnancy_AntenatalOutpatientManagementOfAnaemia
HSI_CareOfWomenDuringPregnancy_AntenatalOutpatientManagementOfGestationalDiabetes
HSI_CareOfWomenDuringPregnancy_PostAbortionCaseManagement
HSI_CareOfWomenDuringPregnancy_TreatmentForEctopicPregnancy
CareOfWomenDuringPregnancyLoggingEvent
- tlo.methods.causes module
- tlo.methods.chronicsyndrome module
- tlo.methods.consumables module
- tlo.methods.contraception module
- tlo.methods.copd module
- tlo.methods.demography module
- tlo.methods.depression module
- tlo.methods.diarrhoea module
- tlo.methods.dxmanager module
- tlo.methods.enhanced_lifestyle module
- tlo.methods.epi module
- tlo.methods.epilepsy module
- tlo.methods.equipment module
- tlo.methods.fullmodel module
- tlo.methods.healthburden module
- tlo.methods.healthseekingbehaviour module
- tlo.methods.healthsystem module
- tlo.methods.hiv module
Hiv
HivRegularPollingEvent
HivInfectionEvent
HivInfectionDuringBreastFeedingEvent
HivAidsOnsetEvent
HivAidsDeathEvent
HivAidsTbDeathEvent
Hiv_DecisionToContinueOnPrEP
Hiv_DecisionToContinueTreatment
HivScaleUpEvent
HSI_Hiv_TestAndRefer
HSI_Hiv_Circ
HSI_Hiv_StartInfantProphylaxis
HSI_Hiv_StartOrContinueOnPrep
HSI_Hiv_StartOrContinueTreatment
HSI_Hiv_EndOfLifeCare
HivLoggingEvent
HivCheckPropertiesEvent
DummyHivModule
- tlo.methods.hiv_tb_calibration module
- tlo.methods.hsi_event module
- tlo.methods.hsi_generic_first_appts module
- tlo.methods.labour module
Labour
LabourOnsetEvent
LabourAtHomeEvent
LabourDeathAndStillBirthEvent
BirthAndPostnatalOutcomesEvent
HSI_Labour_ReceivesSkilledBirthAttendanceDuringLabour
HSI_Labour_ReceivesPostnatalCheck
HSI_Labour_ReceivesComprehensiveEmergencyObstetricCare
HSI_Labour_PostnatalWardInpatientCare
LabourAndPostnatalCareAnalysisEvent
LabourLoggingEvent
- tlo.methods.labour_lm module
- tlo.methods.malaria module
Malaria
MalariaPollingEventDistrict
MalariaScaleUpEvent
MalariaIPTp
MalariaEndIPTpProtection
MalariaDeathEvent
HSI_Malaria_rdt
HSI_Malaria_rdt_community
HSI_Malaria_Treatment
HSI_Malaria_Treatment_Complicated
HSI_MalariaIPTp
MalariaUpdateEvent
MalariaParasiteClearanceEvent
MalariaLoggingEvent
MalariaTxLoggingEvent
MalariaPrevDistrictLoggingEvent
- tlo.methods.measles module
- tlo.methods.mockitis module
- tlo.methods.newborn_outcomes module
- tlo.methods.newborn_outcomes_lm module
- tlo.methods.oesophagealcancer module
- tlo.methods.other_adult_cancers module
- tlo.methods.postnatal_supervisor module
- tlo.methods.postnatal_supervisor_lm module
- tlo.methods.pregnancy_helper_functions module
- tlo.methods.pregnancy_supervisor module
- tlo.methods.pregnancy_supervisor_lm module
- tlo.methods.prostate_cancer module
ProstateCancer
ProstateCancerMainPollingEvent
HSI_ProstateCancer_Investigation_Following_Urinary_Symptoms
HSI_ProstateCancer_Investigation_Following_Pelvic_Pain
HSI_ProstateCancer_Investigation_Following_psa_positive
HSI_ProstateCancer_StartTreatment
HSI_ProstateCancer_PostTreatmentCheck
HSI_ProstateCancer_PalliativeCare
ProstateCancerLoggingEvent
- tlo.methods.rti module
RTI
RTIPollingEvent
RTI_Check_Death_No_Med
RTI_Recovery_Event
HSI_RTI_Imaging_Event
HSI_RTI_Medical_Intervention
HSI_RTI_Shock_Treatment
HSI_RTI_Fracture_Cast
HSI_RTI_Open_Fracture_Treatment
HSI_RTI_Suture
HSI_RTI_Burn_Management
HSI_RTI_Tetanus_Vaccine
HSI_RTI_Acute_Pain_Management
HSI_RTI_Major_Surgeries
HSI_RTI_Minor_Surgeries
RTI_Medical_Intervention_Death_Event
RTI_No_Lifesaving_Medical_Intervention_Death_Event
RTI_Logging_Event
- tlo.methods.scenario_switcher module
- tlo.methods.schisto module
- tlo.methods.simplified_births module
- tlo.methods.skeleton module
- tlo.methods.stunting module
- tlo.methods.symptommanager module
- tlo.methods.tb module
Tb
TbActiveCasePoll
TbRegularEvents
TbScaleUpEvent
TbActiveEvent
TbSelfCureEvent
HSI_Tb_ScreeningAndRefer
HSI_Tb_ClinicalDiagnosis
HSI_Tb_Xray_level1b
HSI_Tb_Xray_level2
HSI_Tb_StartTreatment
HSI_Tb_FollowUp
HSI_Tb_Start_or_Continue_Ipt
HSI_Tb_EndOfLifeCare
Tb_DecisionToContinueIPT
TbDecideDeathEvent
TbDeathEvent
TbLoggingEvent
TbCheckPropertiesEvent
DummyTbModule
- tlo.methods.wasting module
- tlo.methods.alri module
- Module contents
- Submodules
- tlo.test package
Submodules
- tlo.cli module
- tlo.core module
Types
Specifiable
Parameter
Property
Module
Module.INIT_DEPENDENCIES
Module.OPTIONAL_INIT_DEPENDENCIES
Module.ADDITIONAL_DEPENDENCIES
Module.ALTERNATIVE_TO
Module.METADATA
Module.CAUSES_OF_DEATH
Module.CAUSES_OF_DISABILITY
Module.PARAMETERS
Module.PROPERTIES
Module.parameters
Module.load_parameters_from_dataframe()
Module.read_parameters()
Module.initialise_population()
Module.initialise_simulation()
Module.pre_initialise_population()
Module.on_birth()
Module.on_simulation_end()
- tlo.dependencies module
ModuleDependencyError
MultipleModuleInstanceError
get_init_dependencies()
get_all_dependencies()
get_missing_dependencies()
initialise_missing_dependencies()
get_all_required_dependencies()
topologically_sort_modules()
is_valid_tlo_module_subclass()
get_module_class_map()
get_dependencies_and_initialise()
check_dependencies_present()
- tlo.docs module
- tlo.events module
- tlo.lm module
- tlo.population module
- tlo.progressbar module
ProgressBar
ProgressBar.GLYPHS
ProgressBar.n_step
ProgressBar.description
ProgressBar.step
ProgressBar.prop_complete
ProgressBar.perc_complete
ProgressBar.elapsed_time
ProgressBar.iter_rate
ProgressBar.est_remaining_time
ProgressBar.n_block_filled
ProgressBar.n_block_empty
ProgressBar.prop_partial_block
ProgressBar.filled_blocks
ProgressBar.empty_blocks
ProgressBar.partial_block
ProgressBar.progress_bar
ProgressBar.bar_color
ProgressBar.stats
ProgressBar.prefix
ProgressBar.postfix
ProgressBar.reset()
ProgressBar.update()
ProgressBar.refresh()
ProgressBar.start()
ProgressBar.stop()
StreamDisplay
AnsiStreamDisplay
BasicStreamDisplay
- tlo.scenario module
- tlo.simulation module
SimulationPreviouslyInitialisedError
SimulationNotInitialisedError
Simulation
Simulation.log_filepath
Simulation.register()
Simulation.make_initial_population()
Simulation.initialise()
Simulation.finalise()
Simulation.close_output_file()
Simulation.run_simulation_to()
Simulation.simulate()
Simulation.schedule_event()
Simulation.fire_single_event()
Simulation.do_birth()
Simulation.find_events_for_person()
Simulation.save_to_pickle()
Simulation.load_from_pickle()
EventQueue
- tlo.util module
create_age_range_lookup()
transition_states()
sample_outcome()
BitsetHandler
BitsetHandler.df
BitsetHandler.element_repr()
BitsetHandler.to_strings()
BitsetHandler.set()
BitsetHandler.unset()
BitsetHandler.clear()
BitsetHandler.has()
BitsetHandler.has_all()
BitsetHandler.has_any()
BitsetHandler.get()
BitsetHandler.uncompress()
BitsetHandler.not_empty()
BitsetHandler.is_empty()
random_date()
str_to_pandas_date()
hash_dataframe()
get_person_id_to_inherit_from()
convert_excel_files_to_csv()
read_csv_files()
Module contents
The top-level TLO framework module.
We import our key classes so they’re available in the main namespace.
Pandas’ Timestamp is used as our main date type (even though it has nanosecond resolution…)