weather_variable
Weather variable module implement functionality for working with weather variables.
WeatherVariable
Bases: Enum
Weather variables required by EMOD.
Source code in emodpy_malaria/weather/weather_variable.py
__hash__()
list(exclude=None)
classmethod
List of all weather variables or a subset if 'exclude' argument is used.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
exclude
|
Union[WeatherVariable, List[WeatherVariable]]
|
(Optional) List of weather variables to be excluded. |
None
|
Returns:
| Type | Description |
|---|---|
List[WeatherVariable]
|
List of all or a subset of weather variables. |
Source code in emodpy_malaria/weather/weather_variable.py
validate_types(value_dict, value_types=None)
classmethod
Validate dictionary keys are of type WeatherVariable and values are of specified type.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value_dict
|
Dict[WeatherVariable, Any]
|
Dictionary to be validated. |
required |
value_types
|
Union[Any, List[Any]]
|
Dictionary value types. |
None
|
Returns:
| Type | Description |
|---|---|
NoReturn
|
None |