trumania.components.geographies package

Submodules

trumania.components.geographies.belgium module

This Belgium geography adds real sites from a Belgian operator to your circus The loaded Actor has a LATITUDE and a LONGITUDE attribute

See https://realimpactanalytics.atlassian.net/wiki/x/J4A6Bg to read more on how the dataset was generated.

class trumania.components.geographies.belgium.WithBelgium(name, master_seed, **clock_params)[source]

Bases: trumania.core.circus.Circus

static add_belgium_geography()[source]

Loads the sites definition from Belgium

trumania.components.geographies.random_geo module

class trumania.components.geographies.random_geo.WithRandomGeo(name, master_seed, **clock_params)[source]

Bases: trumania.core.circus.Circus

Circus mix-in that adds the creation of random cells

create_random_cells(n_cells)[source]

Creation of a basic population for cells, with latitude and longitude

trumania.components.geographies.uganda module

This is just an illustration of how to persist various scenario components

class trumania.components.geographies.uganda.WithUganda(name, master_seed, **clock_params)[source]

Bases: trumania.core.circus.Circus

add_uganda_geography(force_build=False)[source]

Loads the cells definition from Uganda + adds 2 stories to control

trumania.components.geographies.uganda.build_healthy_level_gen(seed)[source]
trumania.components.geographies.uganda.build_uganda_populations(circus)[source]
trumania.components.geographies.uganda.build_unhealthy_level_gen(seed)[source]

Module contents