exposed
laser.cholera.metapop.exposed
¶
Exposed compartment — incubating individuals between infection and infectiousness.
Allocates model.people.E (shape (nticks + 1, npatches)), seeds it
from params.E_j_initial, and on each tick applies non-disease
mortality (drawn from d_jt). Progression from E to Isym / Iasym
is performed inside
Infectious using the
iota rate, so Exposed.__call__ only handles the demographic decay.
Exposed
¶
Exposed compartment: tracks E_j(t) and bleeds off non-disease deaths each tick.
Attributes:
| Name | Type | Description |
|---|---|---|
model |
The parent |
Source code in src/laser/cholera/metapop/exposed.py
24 25 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 | |
__init__
¶
Allocate the E state vector and seed it from E_j_initial.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
model
|
Model
|
The |
required |
Raises:
| Type | Description |
|---|---|
AttributeError
|
When |
ValueError
|
When |
Source code in src/laser/cholera/metapop/exposed.py
check
¶
Validate the iota progression-rate parameter and ensure shared bookkeeping is allocated.
Raises:
| Type | Description |
|---|---|
ValueError
|
When |
Source code in src/laser/cholera/metapop/exposed.py
__call__
¶
Advance E from tick to tick + 1: carry forward, then remove non-disease deaths.
Progression E -> Isym / Iasym (governed by iota and sigma)
is handled by Infectious;
this method only applies natural mortality from d_jt.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
model
|
Model
|
The parent |
required |
tick
|
int
|
Current simulation tick. |
required |
Source code in src/laser/cholera/metapop/exposed.py
plot
¶
Yield a single Matplotlib figure of E(t) for the ten largest patches.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
fig
|
Figure | None
|
Optional existing Matplotlib |
None
|
Yields:
| Type | Description |
|---|---|
str
|
The string label |