Source code for tlo.methods.wasting

"""Placeholder for childhood wasting module."""

from tlo import Module, Property, Types, logging

logger = logging.getLogger(__name__)
logger.setLevel(logging.INFO)


[docs] class Wasting(Module): """Placeholder for childhood wasting module. Provides dummy values for properties required by other modules. """ INIT_DEPENDENCIES = {'Demography'} PROPERTIES = { 'un_clinical_acute_malnutrition': Property(Types.CATEGORICAL, 'temporary property', categories=['MAM', 'SAM', 'well']), 'un_ever_wasted': Property(Types.BOOL, 'temporary property') }
[docs] def __init__(self, name=None, resourcefilepath=None): super().__init__(name=name) self.resourcefilepath = resourcefilepath
[docs] def read_parameters(self, data_folder): pass
[docs] def initialise_population(self, population): df = population.props df.loc[df.is_alive, 'un_clinical_acute_malnutrition'] = 'well' df.loc[df.is_alive, 'un_ever_wasted'] = False
[docs] def initialise_simulation(self, sim): pass
[docs] def on_birth(self, mother, child): df = self.sim.population.props df.at[child, 'un_clinical_acute_malnutrition'] = 'well' df.at[child, 'un_ever_wasted'] = False