emodpy_hiv.demographics.country_models module#
- class emodpy_hiv.demographics.country_models.AgeBin(start, end, delimiter=None)[source]#
Bases:
object
- STR_FORMAT = '[%s%s%s)'#
- SPLIT_REGEX = re.compile('^\\[(?P<start>[0-9.]+)(?P<delimiter>[^0-9.]+)(?P<end>[0-9.]+)\\)$')#
- DEFAULT_DELIMITER = ':'#
- ALL = 'all'#
- merge(other_bin)[source]#
Create a single AgeBin representing two adjacent AgeBins. Keeps delimiter of ‘self’. :param other_bin: merge self with this other AgeBin object (self is lower age than other_bin) :return: an AgeBin object with delimiter set to self.delimiter (not other_bin.delimiter)
- emodpy_hiv.demographics.country_models.load_country_model_demographics_default(country_model: str) HIVDemographics [source]#