envtohuman
laser.cholera.metapop.envtohuman
¶
Environmental-reservoir-to-human transmission component.
Computes a per-tick, per-patch environmental force-of-infection Psi
from the contaminated-water reservoir patches.W (maintained by
Environmental)
modulated by a per-tick seasonal-suitability matrix beta_jt_env
derived from params.psi_jt and params.beta_j0_env. The
(1 - theta_j) factor models the fraction of the population NOT
covered by water/sanitation/hygiene (WASH), and the
W / (kappa + W) term saturates uptake as the reservoir grows.
EnvToHuman
¶
Environmental transmission component: turns reservoir W into new S -> E infections.
Attributes:
| Name | Type | Description |
|---|---|---|
model |
The parent |
Source code in src/laser/cholera/metapop/envtohuman.py
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 | |
__init__
¶
Allocate Psi and bake the beta_jt_env seasonality matrix.
beta_jt_env is computed once at construction time from
params.psi_jt (deviation-from-mean suitability) and
params.beta_j0_env (baseline) and is constant across the run.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
model
|
Model
|
The |
required |
Raises:
| Type | Description |
|---|---|
AttributeError
|
When |
ValueError
|
When |
AssertionError
|
When the allocated |
Source code in src/laser/cholera/metapop/envtohuman.py
check
¶
Validate the consumer-side state and transmission parameters.
Asserts that model.people.S and .E exist, that
model.patches.W exists (allocated by Environmental), and
that params provides tau_i, theta_j, and kappa.
Raises:
| Type | Description |
|---|---|
AttributeError
|
When |
ValueError
|
When |
Source code in src/laser/cholera/metapop/envtohuman.py
__call__
¶
Compute environmental force-of-infection Psi and convert S -> E.
Psi[tick + 1] = beta_jt_env[tick] * (1 - theta_j) * W /
(kappa + W). New infections drawn from Binomial(S_next,
1 - exp(-Psi)), where S_next is the susceptible count after
natural mortality and any human-to-human force-of-infection has
already been applied earlier in the tick.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
model
|
Model
|
The parent |
required |
tick
|
int
|
Current simulation tick. |
required |
Raises:
| Type | Description |
|---|---|
AssertionError
|
When the post-infection susceptible population goes negative. |
Source code in src/laser/cholera/metapop/envtohuman.py
plot
¶
Yield one Matplotlib figure of Psi(t) for the ten largest patches.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
fig
|
Figure
|
Optional existing Matplotlib |
None
|
Yields:
| Type | Description |
|---|---|
str
|
The string label |