HIVsim#
- class HIVsim(sim, art_datafile, hiv_datafile, hiv_pars)[source]#
Bases:
ParsObj
A class based around performing operations on a self.pars dict.
Methods
- step(people=None, year=None)[source]#
Wrapper method that checks for new HIV infections, updates prognoses, etc.
- get_hiv_data(hiv_datafile=None, art_datafile=None)[source]#
Load HIV incidence and art coverage data, if provided
- Parameters:
location (str) – must be provided if you want to run with HIV dynamics
hiv_datafile (str) – must be provided if you want to run with HIV dynamics
art_datafile (str) – must be provided if you want to run with HIV dynamics
verbose (bool) – whether to print progress
- Returns:
dictionary keyed by sex, storing arrays of HIV incidence over time by age art_cov (dict): dictionary keyed by sex, storing arrays of ART coverage over time by age
- Return type:
hiv_inc (dict)