MaternalNet#

class MaternalNet(key_dict=None, prenatal=True, postnatal=False, **kwargs)[source]#

Bases: DynamicNetwork

Base class for maternal transmission Use PrenatalNet and PostnatalNet to capture transmission in different phases

Attributes

beta

Relative transmission on each network edge

members

Return sorted array of all members

now

Return the current time, i.e. the time vector at the current timestep.

p1

The first half of a network edge (person 1)

p2

The second half of a network edge (person 2)

states

Return a flat list of all states

statesdict

Return a flat dictionary (objdict) of all states

Methods

step()[source]#

Set beta to 0 for women who complete duration of transmission Keep connections for now, might want to consider removing

NB: add_pairs() and end_pairs() are NOT called here; this is done separately in ss.Pregnancy.update_states().

add_pairs(mother_inds=None, unborn_inds=None, dur=None, start=None)[source]#

Add connections between pregnant women and their as-yet-unborn babies