flood-adapt 0.3.3__tar.gz → 0.3.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/PKG-INFO +2 -1
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/__init__.py +1 -1
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/config/config.py +37 -14
- flood_adapt-0.3.4/flood_adapt/objects/forcing/__init__.py +92 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt.egg-info/PKG-INFO +2 -1
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt.egg-info/requires.txt +1 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/pyproject.toml +12 -4
- flood_adapt-0.3.3/flood_adapt/workflows/__init__.py +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/LICENSE +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/README.md +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/adapter/__init__.py +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/adapter/fiat_adapter.py +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/adapter/interface/__init__.py +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/adapter/interface/hazard_adapter.py +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/adapter/interface/impact_adapter.py +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/adapter/interface/model_adapter.py +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/adapter/interface/offshore.py +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/adapter/sfincs_adapter.py +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/adapter/sfincs_offshore.py +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/config/__init__.py +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/config/fiat.py +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/config/gui.py +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/config/sfincs.py +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/config/site.py +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/database_builder/__init__.py +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/database_builder/database_builder.py +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/database_builder/templates/default_units/imperial.toml +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/database_builder/templates/default_units/metric.toml +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/database_builder/templates/green_infra_table/green_infra_lookup_table.csv +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/database_builder/templates/icons/black_down_48x48.png +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/database_builder/templates/icons/black_left_48x48.png +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/database_builder/templates/icons/black_right_48x48.png +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/database_builder/templates/icons/black_up_48x48.png +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/database_builder/templates/icons/icons8-triangle-arrow-16_white_down.png +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/database_builder/templates/icons/icons8-triangle-arrow-16_white_left.png +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/database_builder/templates/icons/icons8-triangle-arrow-16_white_right.png +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/database_builder/templates/icons/icons8-triangle-arrow-16_white_up.png +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/database_builder/templates/icons/icons8-triangle-arrow-24_black_down.png +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/database_builder/templates/icons/icons8-triangle-arrow-24_black_left.png +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/database_builder/templates/icons/icons8-triangle-arrow-24_black_right.png +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/database_builder/templates/icons/icons8-triangle-arrow-24_black_up.png +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/database_builder/templates/icons/icons8-triangle-arrow-24_white_left.png +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/database_builder/templates/icons/icons8-triangle-arrow-24_white_right.png +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/database_builder/templates/icons/white_down_48x48.png +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/database_builder/templates/icons/white_left_48x48.png +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/database_builder/templates/icons/white_right_48x48.png +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/database_builder/templates/icons/white_up_48x48.png +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/database_builder/templates/infographics/OSM/config_charts.toml +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/database_builder/templates/infographics/OSM/config_people.toml +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/database_builder/templates/infographics/OSM/config_risk_charts.toml +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/database_builder/templates/infographics/OSM/config_roads.toml +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/database_builder/templates/infographics/OSM/styles.css +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/database_builder/templates/infographics/US_NSI/config_charts.toml +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/database_builder/templates/infographics/US_NSI/config_people.toml +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/database_builder/templates/infographics/US_NSI/config_risk_charts.toml +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/database_builder/templates/infographics/US_NSI/config_roads.toml +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/database_builder/templates/infographics/US_NSI/styles.css +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/database_builder/templates/infographics/images/ambulance.png +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/database_builder/templates/infographics/images/car.png +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/database_builder/templates/infographics/images/cart.png +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/database_builder/templates/infographics/images/firetruck.png +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/database_builder/templates/infographics/images/hospital.png +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/database_builder/templates/infographics/images/house.png +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/database_builder/templates/infographics/images/info.png +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/database_builder/templates/infographics/images/money.png +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/database_builder/templates/infographics/images/person.png +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/database_builder/templates/infographics/images/school.png +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/database_builder/templates/infographics/images/truck.png +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/database_builder/templates/infographics/images/walking_person.png +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/database_builder/templates/infometrics/OSM/metrics_additional_risk_configs.toml +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/database_builder/templates/infometrics/OSM/with_SVI/infographic_metrics_config.toml +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/database_builder/templates/infometrics/OSM/with_SVI/infographic_metrics_config_risk.toml +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/database_builder/templates/infometrics/OSM/without_SVI/infographic_metrics_config.toml +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/database_builder/templates/infometrics/OSM/without_SVI/infographic_metrics_config_risk.toml +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/database_builder/templates/infometrics/US_NSI/metrics_additional_risk_configs.toml +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/database_builder/templates/infometrics/US_NSI/with_SVI/infographic_metrics_config.toml +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/database_builder/templates/infometrics/US_NSI/with_SVI/infographic_metrics_config_risk.toml +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/database_builder/templates/infometrics/US_NSI/without_SVI/infographic_metrics_config.toml +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/database_builder/templates/infometrics/US_NSI/without_SVI/infographic_metrics_config_risk.toml +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/database_builder/templates/infometrics/mandatory_metrics_config.toml +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/database_builder/templates/infometrics/mandatory_metrics_config_risk.toml +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/database_builder/templates/output_layers/bin_colors.toml +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/database_builder.py +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/dbs_classes/__init__.py +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/dbs_classes/database.py +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/dbs_classes/dbs_benefit.py +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/dbs_classes/dbs_event.py +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/dbs_classes/dbs_measure.py +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/dbs_classes/dbs_projection.py +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/dbs_classes/dbs_scenario.py +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/dbs_classes/dbs_static.py +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/dbs_classes/dbs_strategy.py +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/dbs_classes/dbs_template.py +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/dbs_classes/interface/database.py +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/dbs_classes/interface/element.py +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/dbs_classes/interface/static.py +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/flood_adapt.py +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/misc/__init__.py +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/misc/database_user.py +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/misc/log.py +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/misc/path_builder.py +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/misc/utils.py +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/objects/__init__.py +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/objects/benefits/__init__.py +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/objects/benefits/benefits.py +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/objects/events/__init__.py +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/objects/events/event_factory.py +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/objects/events/event_set.py +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/objects/events/events.py +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/objects/events/historical.py +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/objects/events/hurricane.py +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/objects/events/synthetic.py +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/objects/forcing/csv.py +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/objects/forcing/discharge.py +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/objects/forcing/forcing.py +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/objects/forcing/forcing_factory.py +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/objects/forcing/meteo_handler.py +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/objects/forcing/netcdf.py +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/objects/forcing/plotting.py +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/objects/forcing/rainfall.py +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/objects/forcing/tide_gauge.py +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/objects/forcing/time_frame.py +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/objects/forcing/timeseries.py +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/objects/forcing/unit_system.py +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/objects/forcing/waterlevels.py +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/objects/forcing/wind.py +0 -0
- {flood_adapt-0.3.3/flood_adapt/objects/forcing → flood_adapt-0.3.4/flood_adapt/objects/measures}/__init__.py +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/objects/measures/measure_factory.py +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/objects/measures/measures.py +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/objects/object_model.py +0 -0
- {flood_adapt-0.3.3/flood_adapt/objects/measures → flood_adapt-0.3.4/flood_adapt/objects/projections}/__init__.py +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/objects/projections/projections.py +0 -0
- {flood_adapt-0.3.3/flood_adapt/objects/projections → flood_adapt-0.3.4/flood_adapt/objects/scenarios}/__init__.py +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/objects/scenarios/scenarios.py +0 -0
- {flood_adapt-0.3.3/flood_adapt/objects/scenarios → flood_adapt-0.3.4/flood_adapt/objects/strategies}/__init__.py +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/objects/strategies/strategies.py +0 -0
- {flood_adapt-0.3.3/flood_adapt/objects/strategies → flood_adapt-0.3.4/flood_adapt/workflows}/__init__.py +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/workflows/benefit_runner.py +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/workflows/floodmap.py +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/workflows/impacts_integrator.py +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt/workflows/scenario_runner.py +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt.egg-info/SOURCES.txt +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt.egg-info/dependency_links.txt +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt.egg-info/not-zip-safe +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/flood_adapt.egg-info/top_level.txt +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/setup.cfg +0 -0
- {flood_adapt-0.3.3 → flood_adapt-0.3.4}/tests/test_flood_adapt.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: flood-adapt
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.4
|
|
4
4
|
Summary: A software package support system which can be used to assess the benefits and costs of flood resilience measures
|
|
5
5
|
Author-email: Gundula Winter <Gundula.Winter@deltares.nl>, Panos Athanasiou <Panos.Athanasiou@deltares.nl>, Frederique de Groen <Frederique.deGroen@deltares.nl>, Tim de Wilde <Tim.deWilde@deltares.nl>, Julian Hofer <Julian.Hofer@deltares.nl>, Daley Adrichem <Daley.Adrichem@deltares.nl>, Luuk Blom <Luuk.Blom@deltares.nl>
|
|
6
6
|
License: GNU GENERAL PUBLIC LICENSE
|
|
@@ -727,6 +727,7 @@ Requires-Dist: sphinx<9.0,>=8.0; extra == "docs"
|
|
|
727
727
|
Requires-Dist: sphinx-rtd-theme<4.0,>=3.0; extra == "docs"
|
|
728
728
|
Requires-Dist: regex<2025.0,>=2024.11; extra == "docs"
|
|
729
729
|
Requires-Dist: minio<8,>=7.2.15; extra == "docs"
|
|
730
|
+
Requires-Dist: python-dotenv<2.0,>=1.0; extra == "docs"
|
|
730
731
|
Provides-Extra: all
|
|
731
732
|
Requires-Dist: flood-adapt[build,dev,docs]; extra == "all"
|
|
732
733
|
|
|
@@ -66,7 +66,7 @@ class Settings(BaseSettings):
|
|
|
66
66
|
|
|
67
67
|
Usage
|
|
68
68
|
-----
|
|
69
|
-
from flood_adapt
|
|
69
|
+
from flood_adapt import Settings
|
|
70
70
|
|
|
71
71
|
One of the following:
|
|
72
72
|
|
|
@@ -77,7 +77,7 @@ class Settings(BaseSettings):
|
|
|
77
77
|
`settings = Settings.read(toml_path: Path)`
|
|
78
78
|
|
|
79
79
|
3) Load settings from keyword arguments, overwriting any environment variables:
|
|
80
|
-
`settings = Settings(DATABASE_ROOT="path/to/database", DATABASE_NAME="database_name"
|
|
80
|
+
`settings = Settings(DATABASE_ROOT="path/to/database", DATABASE_NAME="database_name")`
|
|
81
81
|
|
|
82
82
|
Attributes
|
|
83
83
|
----------
|
|
@@ -85,19 +85,21 @@ class Settings(BaseSettings):
|
|
|
85
85
|
The name of the database.
|
|
86
86
|
database_root : Path
|
|
87
87
|
The root directory of the database.
|
|
88
|
-
system_folder : Path
|
|
89
|
-
The root directory of the system folder containing the kernels.
|
|
90
88
|
delete_crashed_runs : bool
|
|
91
89
|
Whether to delete crashed/corrupted runs immediately after they are detected.
|
|
90
|
+
sfincs_path : Path
|
|
91
|
+
The path to the SFINCS binary.
|
|
92
|
+
fiat_path : Path
|
|
93
|
+
The path to the FIAT binary.
|
|
94
|
+
validate_allowed_forcings : bool
|
|
95
|
+
Whether to validate the forcing types and sources against the allowed forcings in the event model.
|
|
96
|
+
validate_bin_paths : bool
|
|
97
|
+
Whether to validate the existence of the paths to the SFINCS and FIAT binaries.
|
|
92
98
|
|
|
93
99
|
Properties
|
|
94
100
|
----------
|
|
95
101
|
database_path : Path
|
|
96
102
|
The full path to the database.
|
|
97
|
-
sfincs_path : Path
|
|
98
|
-
The path to the SFINCS binary.
|
|
99
|
-
fiat_path : Path
|
|
100
|
-
The path to the FIAT binary.
|
|
101
103
|
|
|
102
104
|
Raises
|
|
103
105
|
------
|
|
@@ -121,16 +123,22 @@ class Settings(BaseSettings):
|
|
|
121
123
|
|
|
122
124
|
delete_crashed_runs: bool = Field(
|
|
123
125
|
alias="DELETE_CRASHED_RUNS", # environment variable: DELETE_CRASHED_RUNS
|
|
124
|
-
default=
|
|
126
|
+
default=False,
|
|
125
127
|
description="Whether to delete the output of crashed/corrupted runs. Be careful when setting this to False, as it may lead to a broken database that cannot be read in anymore.",
|
|
126
128
|
exclude=True,
|
|
127
129
|
)
|
|
128
130
|
validate_allowed_forcings: bool = Field(
|
|
129
131
|
alias="VALIDATE_ALLOWED_FORCINGS", # environment variable: VALIDATE_ALLOWED_FORCINGS
|
|
130
|
-
default=
|
|
132
|
+
default=False,
|
|
131
133
|
description="Whether to validate the forcing types and sources against the allowed forcings in the event model.",
|
|
132
134
|
exclude=True,
|
|
133
135
|
)
|
|
136
|
+
validate_bin_paths: bool = Field(
|
|
137
|
+
alias="VALIDATE_BINARIES", # environment variable: VALIDATE_BINARIES
|
|
138
|
+
default=False,
|
|
139
|
+
description="Whether to validate the existence of the paths to the SFINCS and FIAT binaries.",
|
|
140
|
+
exclude=True,
|
|
141
|
+
)
|
|
134
142
|
|
|
135
143
|
sfincs_path: Path = Field(
|
|
136
144
|
default=_default_exe_path("sfincs"),
|
|
@@ -154,8 +162,9 @@ class Settings(BaseSettings):
|
|
|
154
162
|
@model_validator(mode="after")
|
|
155
163
|
def validate_settings(self):
|
|
156
164
|
self._validate_database_path()
|
|
157
|
-
self.
|
|
158
|
-
|
|
165
|
+
if self.validate_bin_paths:
|
|
166
|
+
self._validate_fiat_path()
|
|
167
|
+
self._validate_sfincs_path()
|
|
159
168
|
self._update_environment_variables()
|
|
160
169
|
return self
|
|
161
170
|
|
|
@@ -164,8 +173,22 @@ class Settings(BaseSettings):
|
|
|
164
173
|
environ["DATABASE_NAME"] = self.database_name
|
|
165
174
|
environ["SFINCS_BIN_PATH"] = str(self.sfincs_path)
|
|
166
175
|
environ["FIAT_BIN_PATH"] = str(self.fiat_path)
|
|
167
|
-
environ["
|
|
168
|
-
environ["
|
|
176
|
+
environ["SFINCS_PATH"] = str(self.sfincs_path)
|
|
177
|
+
environ["FIAT_PATH"] = str(self.fiat_path)
|
|
178
|
+
|
|
179
|
+
if self.delete_crashed_runs:
|
|
180
|
+
environ["DELETE_CRASHED_RUNS"] = str(self.delete_crashed_runs)
|
|
181
|
+
else:
|
|
182
|
+
environ.pop("DELETE_CRASHED_RUNS", None)
|
|
183
|
+
if self.validate_allowed_forcings:
|
|
184
|
+
environ["VALIDATE_ALLOWED_FORCINGS"] = str(self.validate_allowed_forcings)
|
|
185
|
+
else:
|
|
186
|
+
environ.pop("VALIDATE_ALLOWED_FORCINGS", None)
|
|
187
|
+
if self.validate_bin_paths:
|
|
188
|
+
environ["VALIDATE_BINARIES"] = str(self.validate_bin_paths)
|
|
189
|
+
else:
|
|
190
|
+
environ.pop("VALIDATE_BINARIES", None)
|
|
191
|
+
|
|
169
192
|
return self
|
|
170
193
|
|
|
171
194
|
def _validate_database_path(self):
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
from flood_adapt.objects.forcing.discharge import (
|
|
2
|
+
DischargeConstant,
|
|
3
|
+
DischargeCSV,
|
|
4
|
+
DischargeSynthetic,
|
|
5
|
+
)
|
|
6
|
+
from flood_adapt.objects.forcing.forcing import ForcingSource, ForcingType, IForcing
|
|
7
|
+
from flood_adapt.objects.forcing.meteo_handler import MeteoHandler
|
|
8
|
+
from flood_adapt.objects.forcing.rainfall import (
|
|
9
|
+
RainfallConstant,
|
|
10
|
+
RainfallCSV,
|
|
11
|
+
RainfallMeteo,
|
|
12
|
+
RainfallNetCDF,
|
|
13
|
+
RainfallSynthetic,
|
|
14
|
+
RainfallTrack,
|
|
15
|
+
)
|
|
16
|
+
from flood_adapt.objects.forcing.tide_gauge import TideGauge, TideGaugeSource
|
|
17
|
+
from flood_adapt.objects.forcing.time_frame import TimeFrame
|
|
18
|
+
from flood_adapt.objects.forcing.timeseries import (
|
|
19
|
+
BlockTimeseries,
|
|
20
|
+
CSVTimeseries,
|
|
21
|
+
GaussianTimeseries,
|
|
22
|
+
ScsTimeseries,
|
|
23
|
+
Scstype,
|
|
24
|
+
ShapeType,
|
|
25
|
+
SyntheticTimeseries,
|
|
26
|
+
TimeseriesFactory,
|
|
27
|
+
TriangleTimeseries,
|
|
28
|
+
)
|
|
29
|
+
from flood_adapt.objects.forcing.waterlevels import (
|
|
30
|
+
SurgeModel,
|
|
31
|
+
TideModel,
|
|
32
|
+
WaterlevelCSV,
|
|
33
|
+
WaterlevelGauged,
|
|
34
|
+
WaterlevelModel,
|
|
35
|
+
WaterlevelSynthetic,
|
|
36
|
+
)
|
|
37
|
+
from flood_adapt.objects.forcing.wind import (
|
|
38
|
+
WindConstant,
|
|
39
|
+
WindCSV,
|
|
40
|
+
WindMeteo,
|
|
41
|
+
WindNetCDF,
|
|
42
|
+
WindSynthetic,
|
|
43
|
+
WindTrack,
|
|
44
|
+
)
|
|
45
|
+
|
|
46
|
+
__all__ = [
|
|
47
|
+
# Forcing
|
|
48
|
+
"IForcing",
|
|
49
|
+
"ForcingSource",
|
|
50
|
+
"ForcingType",
|
|
51
|
+
# Timeseries
|
|
52
|
+
"ShapeType",
|
|
53
|
+
"Scstype",
|
|
54
|
+
"CSVTimeseries",
|
|
55
|
+
"TimeseriesFactory",
|
|
56
|
+
"SyntheticTimeseries",
|
|
57
|
+
"BlockTimeseries",
|
|
58
|
+
"ScsTimeseries",
|
|
59
|
+
"GaussianTimeseries",
|
|
60
|
+
"TriangleTimeseries",
|
|
61
|
+
# TimeFrame
|
|
62
|
+
"TimeFrame",
|
|
63
|
+
# Discharge
|
|
64
|
+
"DischargeConstant",
|
|
65
|
+
"DischargeCSV",
|
|
66
|
+
"DischargeSynthetic",
|
|
67
|
+
# Waterlevels
|
|
68
|
+
"WaterlevelCSV",
|
|
69
|
+
"WaterlevelGauged",
|
|
70
|
+
"WaterlevelModel",
|
|
71
|
+
"WaterlevelSynthetic",
|
|
72
|
+
"TideModel",
|
|
73
|
+
"SurgeModel",
|
|
74
|
+
"TideGauge",
|
|
75
|
+
"TideGaugeSource",
|
|
76
|
+
# Rainfall
|
|
77
|
+
"RainfallConstant",
|
|
78
|
+
"RainfallCSV",
|
|
79
|
+
"RainfallSynthetic",
|
|
80
|
+
"RainfallMeteo",
|
|
81
|
+
"RainfallNetCDF",
|
|
82
|
+
"RainfallTrack",
|
|
83
|
+
# Wind
|
|
84
|
+
"WindConstant",
|
|
85
|
+
"WindCSV",
|
|
86
|
+
"WindSynthetic",
|
|
87
|
+
"WindMeteo",
|
|
88
|
+
"WindNetCDF",
|
|
89
|
+
"WindTrack",
|
|
90
|
+
# Other
|
|
91
|
+
"MeteoHandler",
|
|
92
|
+
]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: flood-adapt
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.4
|
|
4
4
|
Summary: A software package support system which can be used to assess the benefits and costs of flood resilience measures
|
|
5
5
|
Author-email: Gundula Winter <Gundula.Winter@deltares.nl>, Panos Athanasiou <Panos.Athanasiou@deltares.nl>, Frederique de Groen <Frederique.deGroen@deltares.nl>, Tim de Wilde <Tim.deWilde@deltares.nl>, Julian Hofer <Julian.Hofer@deltares.nl>, Daley Adrichem <Daley.Adrichem@deltares.nl>, Luuk Blom <Luuk.Blom@deltares.nl>
|
|
6
6
|
License: GNU GENERAL PUBLIC LICENSE
|
|
@@ -727,6 +727,7 @@ Requires-Dist: sphinx<9.0,>=8.0; extra == "docs"
|
|
|
727
727
|
Requires-Dist: sphinx-rtd-theme<4.0,>=3.0; extra == "docs"
|
|
728
728
|
Requires-Dist: regex<2025.0,>=2024.11; extra == "docs"
|
|
729
729
|
Requires-Dist: minio<8,>=7.2.15; extra == "docs"
|
|
730
|
+
Requires-Dist: python-dotenv<2.0,>=1.0; extra == "docs"
|
|
730
731
|
Provides-Extra: all
|
|
731
732
|
Requires-Dist: flood-adapt[build,dev,docs]; extra == "all"
|
|
732
733
|
|
|
@@ -73,7 +73,8 @@ docs = [
|
|
|
73
73
|
"sphinx >=8.0,<9.0",
|
|
74
74
|
"sphinx-rtd-theme >=3.0,<4.0",
|
|
75
75
|
"regex >=2024.11,<2025.0",
|
|
76
|
-
"minio >=7.2.15,<8"
|
|
76
|
+
"minio >=7.2.15,<8",
|
|
77
|
+
"python-dotenv >=1.0,<2.0",
|
|
77
78
|
]
|
|
78
79
|
all = ["flood-adapt[build,dev,docs]"]
|
|
79
80
|
|
|
@@ -137,14 +138,21 @@ install-pre-commit = {cmd = "pre-commit install", outputs=[".git/hooks/pre-commi
|
|
|
137
138
|
pre-commit = {cmd = "pre-commit run --all-files", depends-on=["install-pre-commit"]}
|
|
138
139
|
tests = {cmd = "pytest tests"}
|
|
139
140
|
|
|
140
|
-
|
|
141
141
|
[tool.pixi.feature.build.tasks]
|
|
142
142
|
build-db-builder = {cmd = "python distribution/build_database_builder_executable.py"}
|
|
143
143
|
|
|
144
144
|
[tool.pixi.feature.docs.tasks]
|
|
145
145
|
clean-generated-docs = { cmd = "rm -rf docs/_freeze docs/_version.yml docs/api_ref docs/objects.json docs/_site" }
|
|
146
146
|
clean-docs = {depends-on=["clean-generated-docs"]}
|
|
147
|
-
fetch-data = { cmd = "python docs/fetch_data.py"}
|
|
148
|
-
build-docs = { cmd = "quartodoc build --config docs/_quarto.yml", depends-on=[ "clean-docs"
|
|
147
|
+
fetch-data = { cmd = "python docs/fetch_data.py" }
|
|
148
|
+
build-docs = { cmd = "quartodoc build --config docs/_quarto.yml", depends-on=[ "clean-docs" ] }
|
|
149
149
|
build-interlinks = { cmd = "quartodoc interlinks", depends-on=[ "clean-docs" ], cwd = "docs" }
|
|
150
|
+
render-examples = { cmd = "quarto render ./docs/examples/**/*.ipynb ./docs/examples/**/*.qmd --execute" }
|
|
151
|
+
open-docs = { cmd = "cmd.exe /c start docs/_site/index.html" }
|
|
150
152
|
render-docs = { cmd = "quarto render ./docs --execute", depends-on=["build-docs", "build-interlinks"] }
|
|
153
|
+
|
|
154
|
+
[tool.pixi.target.win-64.activation]
|
|
155
|
+
scripts = [ "setup.bat" ]
|
|
156
|
+
|
|
157
|
+
[tool.pixi.target.linux-64.activation]
|
|
158
|
+
scripts = [ "setup.sh" ]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|