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