flood-adapt 1.0.1__py3-none-any.whl → 1.0.2__py3-none-any.whl

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/__init__.py CHANGED
@@ -1,5 +1,5 @@
1
1
  # has to be here at the start to avoid circular imports
2
- __version__ = "1.0.1"
2
+ __version__ = "1.0.2"
3
3
 
4
4
  from flood_adapt import adapter, database_builder, dbs_classes, objects
5
5
  from flood_adapt.config.config import Settings
@@ -527,6 +527,14 @@ class TimeseriesFactory:
527
527
  fill_value=fill_value,
528
528
  )
529
529
  case ShapeType.scs:
530
+ if scs_file_name is None or scs_type is None:
531
+ from flood_adapt.dbs_classes.database import Database
532
+
533
+ scs_config = Database().site.sfincs.scs
534
+ if scs_config is None:
535
+ raise ValueError("SCS configuration not found in database.")
536
+ scs_file_name = scs_file_name or scs_config.file
537
+ scs_type = scs_type or scs_config.type
530
538
  return ScsTimeseries(
531
539
  duration=duration,
532
540
  peak_time=peak_time,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: flood-adapt
3
- Version: 1.0.1
3
+ Version: 1.0.2
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: ====================================================
@@ -1,4 +1,4 @@
1
- flood_adapt/__init__.py,sha256=l5Dc_VoCiYseSAV_GfkQjHFgUDEHe5qsAJ_dRZxhAkc,818
1
+ flood_adapt/__init__.py,sha256=nM2dOWhbuJMqz6B1Z_TD3ymLj7p4NZt4VME5qSRiuQ0,818
2
2
  flood_adapt/flood_adapt.py,sha256=0oUk83neusSBa2ibBvqHMoTSz97ABICGZgQ47VXoaOk,38701
3
3
  flood_adapt/adapter/__init__.py,sha256=vnF8NCkEVX-N-gtGS-J_A1H1YYAjihWjJZFyYGwcp8Q,180
4
4
  flood_adapt/adapter/fiat_adapter.py,sha256=kqZsAEo4YToLtaKTwATAGgmp5-FWQffZLbAItuLx104,60010
@@ -116,7 +116,7 @@ flood_adapt/objects/forcing/plotting.py,sha256=z612jv_9aRyK6cUm181vXFhihWz5XX_c6
116
116
  flood_adapt/objects/forcing/rainfall.py,sha256=e6P3IMzItvnsmXbcMXl1oV-d9LDuh3jTIc_vt6Kz5zo,3282
117
117
  flood_adapt/objects/forcing/tide_gauge.py,sha256=jGIh6jQlhecGkPfBaZ8NKbr7FlpmLZAwmlqgp8lEWu0,7143
118
118
  flood_adapt/objects/forcing/time_frame.py,sha256=1X3G0Ax18BHRvAomf-CW_ISRk_3qgAakwgZCIBxIkL4,2855
119
- flood_adapt/objects/forcing/timeseries.py,sha256=o9MRgu3NH_SyIvjPzVzyhASqyQ_gjqpf-fpzvfURLbM,19279
119
+ flood_adapt/objects/forcing/timeseries.py,sha256=bD27JWzC3owq5ah3zPzJ7xoUzSH_t4J03s_SycYW0mQ,19740
120
120
  flood_adapt/objects/forcing/unit_system.py,sha256=EHz4ixI8nmjfDeyU2AszXTf6ebaqChbGg0PuJHMJdh8,16502
121
121
  flood_adapt/objects/forcing/waterlevels.py,sha256=8lCmUdeyABurJwftae4_Iut9hCn24xVqCEPEa73OOcA,3437
122
122
  flood_adapt/objects/forcing/wind.py,sha256=xs_xZdUoZUDP1y1xITlNVJwiyDt6wQsFbPFhVRDjSqg,3925
@@ -133,8 +133,8 @@ flood_adapt/objects/strategies/strategies.py,sha256=Jw-WJDCamL9p_7VEir3AdmYPMVAi
133
133
  flood_adapt/workflows/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
134
134
  flood_adapt/workflows/benefit_runner.py,sha256=VtYt0sHFymNyErpzOtuN55cKJGVm5hT2a_Qzprg6T88,21786
135
135
  flood_adapt/workflows/scenario_runner.py,sha256=RGTtYt7kRqjL2kJJq1hTJ-i9vKndRfazGkyVkJym0so,3679
136
- flood_adapt-1.0.1.dist-info/LICENSE,sha256=Ui5E03pQ0EVKxvKA54lTPA1xrtgA2HMGLQai95eOzoE,36321
137
- flood_adapt-1.0.1.dist-info/METADATA,sha256=rWBs2r62btGcTySlip9Cf__kDG2p3TZwOXCccmg5-q0,53259
138
- flood_adapt-1.0.1.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
139
- flood_adapt-1.0.1.dist-info/top_level.txt,sha256=JvzMi6cTcQPEThCfpgMEeVny3ghI1urSH0CCgVIqSzw,12
140
- flood_adapt-1.0.1.dist-info/RECORD,,
136
+ flood_adapt-1.0.2.dist-info/LICENSE,sha256=Ui5E03pQ0EVKxvKA54lTPA1xrtgA2HMGLQai95eOzoE,36321
137
+ flood_adapt-1.0.2.dist-info/METADATA,sha256=ZHACDKexWru7O0XSGLnhdhIKogl3C-0H4erWALYgI7I,53259
138
+ flood_adapt-1.0.2.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
139
+ flood_adapt-1.0.2.dist-info/top_level.txt,sha256=JvzMi6cTcQPEThCfpgMEeVny3ghI1urSH0CCgVIqSzw,12
140
+ flood_adapt-1.0.2.dist-info/RECORD,,