_vectors
Inspection and modification of vector populations in serialized files.
count_vectors_by_state(ser_pop, *, node_index=None)
Count vector cohorts grouped by species and state.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
ser_pop
|
SerializedPopulation
|
A loaded SerializedPopulation. |
required |
node_index
|
int
|
If given, count only this node. Otherwise sums all nodes. |
None
|
Returns:
| Type | Description |
|---|---|
dict[str, dict[str, int]]
|
Nested dict: |
Source code in emodpy_malaria/serialization/_vectors.py
get_vector_infection_summary(ser_pop, *, node_index=None)
Summarize vector infection state across all species and queues.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
ser_pop
|
SerializedPopulation
|
A loaded SerializedPopulation. |
required |
node_index
|
int
|
If given, summarize only this node. |
None
|
Returns:
| Type | Description |
|---|---|
dict[str, Any]
|
Dict with |
dict[str, Any]
|
|
dict[str, Any]
|
|
Source code in emodpy_malaria/serialization/_vectors.py
get_vector_species_names(ser_pop, *, node_index=None)
Return the names of vector species present in the population.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
ser_pop
|
SerializedPopulation
|
A loaded SerializedPopulation. |
required |
node_index
|
int
|
If given, inspect only this node. Otherwise inspects the first node (species are typically identical across nodes). |
None
|
Returns:
| Type | Description |
|---|---|
list[str]
|
List of species name strings. |