Skip to content

Commit

Permalink
Add Alri to HSI docs (#353)
Browse files Browse the repository at this point in the history
  • Loading branch information
tamuri authored Aug 19, 2021
1 parent c80cf0e commit a691b72
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/tlo_hsi_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import tlo.methods
from tlo import Date, Module, Simulation
from tlo.methods import (
alri,
bladder_cancer,
breast_cancer,
cardio_metabolic_disorders,
Expand Down Expand Up @@ -44,6 +45,11 @@

# Dependencies of each Module subclass on other Module subclasses
module_dependencies = {
alri.Alri: (
demography.Demography,
healthsystem.HealthSystem,
symptommanager.SymptomManager,
),
bladder_cancer.BladderCancer: (
demography.Demography,
enhanced_lifestyle.Lifestyle,
Expand Down Expand Up @@ -249,6 +255,8 @@ def get_hsi_event_classes_per_module(excluded_modules):
elif len(tlo_module_classes) == 2 and module_name == 'hiv':
# Use full HIV module rather than dummy module
tlo_module_class = hiv.Hiv
elif len(tlo_module_classes) == 2 and module_name == 'alri':
tlo_module_class = alri.Alri
else:
raise RuntimeError(
f'Module {module_name} defines HSI events but contains '
Expand Down

0 comments on commit a691b72

Please sign in to comment.