emodpy_hiv.interventions.random module¶
- emodpy_hiv.interventions.random.new_diagnostic(camp, choices)¶
Wrapper function to create and return a HIVRandomChoice intervention.
- Parameters
camp – emod_api.campaign object with schema_path set.
choices – dict of events:probability, with probs summing up to 1.0
- Returns
Schema-based smart dictionary representing a new
- Return type
ReadOnlyDict
- emodpy_hiv.interventions.random.new_intervention_event(camp, choices, start_day=1, coverage=1.0, node_ids=None)¶
Diagnostic as scheduled event.
- emodpy_hiv.interventions.random.new_intervention_as_file(camp, start_day, choices, filename=None)¶