Skip to content

Commit

Permalink
SPATIALCONTROLNODETYPES
Browse files Browse the repository at this point in the history
  • Loading branch information
SouthEndMusic committed Jul 23, 2024
1 parent af48e2c commit 9ccccee
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions python/ribasim/ribasim/geometry/edge.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
__all__ = ("EdgeTable",)

SPATIALCONTROLNODETYPES = {
"LevelDemand",
"FlowDemand",
"ContinuousControl",
"DiscreteControl",
"FlowDemand",
"LevelDemand",
"PidControl",
}

Expand Down
8 changes: 7 additions & 1 deletion ribasim_qgis/core/nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -922,7 +922,13 @@ def attributes(cls) -> list[QgsField]:
cls.nodetype() for cls in Input.__subclasses__() if not cls.is_spatial()
}
EDGETYPES = {"flow", "control"}
SPATIALCONTROLNODETYPES = {"LevelDemand", "FlowDemand", "DiscreteControl", "PidControl"}
SPATIALCONTROLNODETYPES = {
"ContinuousControl",
"DiscreteControl",
"FlowDemand",
"LevelDemand",
"PidControl",
}


def load_nodes_from_geopackage(path: Path) -> dict[str, Input]:
Expand Down

0 comments on commit 9ccccee

Please sign in to comment.