emod_api.interventions.node_multiplier module#

emod_api.interventions.node_multiplier.new_intervention(camp, new_infectivity=1.0, profile='CONST', **kwargs)[source]#

Create new NodeInfectivityModifying intervention.

Parameters:
  • profile

    multiplier options include:

    • CONST(ANT)
      • new_infectivity lasts forever (or until replaced).

    • TRAP(EZOID)
      • rise_dur(ation)

      • peak_dur(ation)

      • fall_dur(ation)

    • EXP(ONENTIAL) (not implemented yet)
      • rise duration

      • rise rate

    • SIN(USOIDAL) (not implemented yet)
      • period

  • durations (To do boxcar, specify 0 rise and fall) –

Returns:

new NodeInfectivityMult intervention dictionary.

emod_api.interventions.node_multiplier.new_scheduled_event(camp, start_day=1, new_infectivity=1.0, profile='CONST', node_ids=None, recurring=True, **kwargs)[source]#

Create new NodeInfectivityModifying intervention as scheduled campaign event.

emod_api.interventions.node_multiplier.new_intervention_as_file(camp, timestep, filename=None)[source]#

Create new NodeInfectivityModifying intervention as sole scheduled campaign event inside working campaign json file.