pandemia.components.travel_model.safir_travel_model

Safir regional mixing model

Module Contents

Classes

SafirTravelModel

Version of the default model of mixing between regions adapted to the safir health model.

Attributes

log

pandemia.components.travel_model.safir_travel_model.log
class pandemia.components.travel_model.safir_travel_model.SafirTravelModel(config, scale_factor, number_of_strains, vector_world)

Bases: pandemia.components.travel_model.TravelModel

Version of the default model of mixing between regions adapted to the safir health model.

Each day, a number of agents are selected from each region to travel to each other region. The numbers travelling between regions are given by the matrix agents_travelling_matrix. The destination of the travellers is recorded using the array current_region. Agents outside their home region are typically ignored by other components while they are travelling. Only uninfected agents can travel, but such agents can become infected whlie travelling. The probability that they become infected is given in terms of the average infectiousness of their destination region. The border closure intervention is also implemented here.

Parameters:

configConfig

A Pandemia Config object. A sub-config of the full config, containing the data used to configure this component.

scale_factorfloat

The scale factor, coming from the full config.

number_of_strainsint

The number of strains appearing the model.

vector_worldVectorWorld

A Pandemia VectorWorld object, containing the relevant regions.

vectorize_component(vector_region)

Initializes numpy arrays associated to this component

initial_conditions(sim)

Initial regional mixing

dynamics(sim, day, ticks_in_day, facemask_transmission_multiplier, mutation_matrix, enable_parallel, num_jobs, vector_region_batches)

Changes to regional mixing model