stisim.diseases.gud module#

Placeholder modules for non-specific STIs, including:
  • Genital ulcer disease

  • Vaginal discharge

class stisim.diseases.gud.Placeholder(pars=None, name=None, **kwargs)[source]#

Bases: Disease

init_pre(sim)[source]#

Link the disease to the sim, create objects, and initialize results; see Module.init_pre() for details

set_prognoses(target_uids, source_uids=None)[source]#

Set prognoses upon infection/acquisition

This function assigns state values upon infection or acquisition of the disease. It would normally be called somewhere towards the end of Disease.make_new_cases(). Infections will optionally be added to the log as part of this operation if logging is enabled (in the Disease parameters)

The sources are relevant for infectious diseases, but would be left as None for NCDs.

Args:

sim (Sim): the STarsim simulation object uids (array): UIDs for agents to assign disease progoses to from_uids (array): Optionally specify the infecting agent

update_pre()[source]#

When using a connector to the syphilis module, this is not needed. The connector should update the syphilis-positive state.

class stisim.diseases.gud.GUDPlaceholder(pars=None, name='gud', **kwargs)[source]#

Bases: Placeholder

class stisim.diseases.gud.VDPlaceholder(pars=None, name='vd', **kwargs)[source]#

Bases: Placeholder

class stisim.diseases.gud.GUD(pars=None, init_prev_data=None, **kwargs)[source]#

Bases: Infection

static make_init_prev_fn(self, sim, uids)[source]#
step_state()[source]#

Update states

set_prognoses(uids, source_uids=None)[source]#

Set initial prognoses for adults newly infected with syphilis