Skip to content

Commit

Permalink
fixes at PR
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielTollenaar committed Sep 27, 2024
1 parent 21b6569 commit 378f46e
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 14 deletions.
3 changes: 0 additions & 3 deletions notebooks/de_dommel/01_fix_model_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,6 @@
model.remove_node(node_id=1898, remove_edges=True)

# see: https://github.com/Deltares/Ribasim-NL/issues/102#issuecomment-2292017813
# for node_id in [1891, 989, 1058]:
# model.remove_node(node_id, remove_edges=True)
model.update_node(989, "Outlet", [outlet.Static(flow_rate=[0])])
model.update_node(1891, "LevelBoundary", [level_data])

Expand Down Expand Up @@ -163,7 +161,6 @@
gdf = gpd.read_file(
cloud.joinpath("DeDommel", "verwerkt", "4_ribasim", "hydamo.gpkg"),
layer="stuw",
engine="pyogrio",
fid_as_index=True,
)
kst = gdf.loc[35]
Expand Down
5 changes: 0 additions & 5 deletions notebooks/de_dommel/05_add_berging.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,9 +270,4 @@ def get_basin_profile(basin_polygon, polygon, max_level, min_level):
# %%
ribasim_toml = cloud.joinpath("DeDommel", "modellen", "DeDommel_bergend", "model.toml")

# if ribasim_toml.parent.exists():
# shutil.rmtree(ribasim_toml.parent)

model.write(ribasim_toml)

# %%
6 changes: 0 additions & 6 deletions src/ribasim_nl/ribasim_nl/__init__.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
__version__ = "0.1.0"

import warnings

from ribasim_nl.cloud import CloudStorage
from ribasim_nl.model import Model
from ribasim_nl.network import Network
from ribasim_nl.network_validator import NetworkValidator
from ribasim_nl.reset_index import reset_index

__all__ = ["CloudStorage", "Network", "reset_index", "Model", "NetworkValidator"]


# ignore crs-warning in Ribasim-module, see https://github.com/Deltares/Ribasim/issues/1799
warnings.filterwarnings("ignore", message="CRS not set for some of the concatenation inputs", category=UserWarning)

0 comments on commit 378f46e

Please sign in to comment.