Skip to content

Commit

Permalink
Merge branch 'main' into feat/gpkg-styles
Browse files Browse the repository at this point in the history
  • Loading branch information
visr authored Aug 12, 2024
2 parents 548f2bb + c8d9f82 commit 91579c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python/ribasim/ribasim/delwaq/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def ugrid(G) -> xugrid.UgridDataset:
to_node_id = edge_df.to_node_id.to_numpy()

# from node_id to the node_dim index
node_lookup: pd.Series[int] = pd.Series(
node_lookup = pd.Series(
index=node_id,
data=node_id.argsort().astype(np.int32),
name="node_index",
Expand Down
2 changes: 1 addition & 1 deletion python/ribasim/ribasim/input_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def _check_extra_columns(cls, v: DataFrame[TableT]):
for colname in v.columns:
if colname == "fid":
# Autogenerated on writing, don't carry them
v = v.drop(columns=["fid"]) # type: ignore
v = v.drop(columns=["fid"])
elif colname not in cls.columns() and not colname.startswith("meta_"):
raise ValueError(
f"Unrecognized column '{colname}'. Extra columns need a 'meta_' prefix."
Expand Down

0 comments on commit 91579c2

Please sign in to comment.