src.run_all
This script runs each module in the Digital Twin using a Sample Polygon.
Functions
|
Run each module in modules_to_parameters using the selected polygon and the defined parameters for each module's |
|
Create a sample area of interest polygon for development purposes. |
Module Contents
- src.run_all.main(selected_polygon_gdf: geopandas.GeoDataFrame, modules_to_parameters: Dict[types.ModuleType, Dict[str, str | int | float | bool | None | enum.Enum]]) None
Run each module in modules_to_parameters using the selected polygon and the defined parameters for each module’s main function.
- Parameters:
selected_polygon_gdf (gpd.GeoDataFrame) – A GeoDataFrame representing the selected polygon, i.e., the catchment area.
modules_to_parameters (Dict[ModuleType, Dict[str, Union[str, int, float, bool, None, Enum]]]) – A dictionary that associates each module with the parameters necessary for its main function, including the option to set the log level for each module’s root logger. The available logging levels and their corresponding numeric values are: - LogLevel.CRITICAL (50) - LogLevel.ERROR (40) - LogLevel.WARNING (30) - LogLevel.INFO (20) - LogLevel.DEBUG (10) - LogLevel.NOTSET (0)
- src.run_all.create_sample_polygon() geopandas.GeoDataFrame
Create a sample area of interest polygon for development purposes. This sample polygon is rectangular, but has non-whole number edges caused by serialisation rounding errors. These deliberate errors are to simulate the production system more accurarately.
- Returns:
A GeoDataFrame containing a single rectangular polygon for the area of interest.
- Return type:
gpd.GeoDataFrame