emodpy_malaria.weather.weather_variable module#
Weather variable module implement functionality for working with weather variables.
- class emodpy_malaria.weather.weather_variable.WeatherVariable(*values)[source]#
Bases:
EnumWeather variables required by EMOD.
- AIR_TEMPERATURE = 'airtemp'#
- RELATIVE_HUMIDITY = 'humidity'#
- RAINFALL = 'rainfall'#
- LAND_TEMPERATURE = 'landtemp'#
- classmethod list(exclude: WeatherVariable | List[WeatherVariable] = None) List[WeatherVariable][source]#
List of all weather variables or a subset if ‘exclude’ argument is used.
- Args:
exclude: (Optional) List of weather variables to be excluded.
- Returns:
List of all or a subset of weather variables.
- classmethod validate_types(value_dict: Dict[WeatherVariable, Any], value_types: Any | List[Any] = None) NoReturn[source]#
Validate dictionary keys are of type WeatherVariable and values are of specified type.
- Args:
value_dict: Dictionary to be validated. value_types: Dictionary value types.
- Returns:
None