Skip to content

Commit

Permalink
make Outlet green and add min_crest_level to QGIS
Browse files Browse the repository at this point in the history
I prefer to avoid yellow since it is the color of selected nodes in QGIS.
  • Loading branch information
visr committed Sep 13, 2023
1 parent db28e8f commit 5b57635
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python/ribasim/ribasim/geometry/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def plot(self, ax=None, zorder=None) -> Any:
"ManningResistance": "r",
"TabulatedRatingCurve": "g",
"Pump": "0.5", # grayscale level
"Outlet": "y",
"Outlet": "g",
"Terminal": "m",
"FlowBoundary": "m",
"DiscreteControl": "k",
Expand Down
3 changes: 2 additions & 1 deletion qgis/core/nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def renderer(self) -> QgsCategorizedSymbolRenderer:
"LevelBoundary": (QColor("green"), "LevelBoundary", shape.Circle),
"FlowBoundary": (QColor("purple"), "FlowBoundary", shape.Hexagon),
"Pump": (QColor("gray"), "Pump", shape.Hexagon),
"Outlet": (QColor("yellow"), "Outlet", shape.Hexagon),
"Outlet": (QColor("green"), "Outlet", shape.Hexagon),
"ManningResistance": (QColor("red"), "ManningResistance", shape.Diamond),
"Terminal": (QColor("purple"), "Terminal", shape.Square),
"DiscreteControl": (QColor("black"), "DiscreteControl", shape.Star),
Expand Down Expand Up @@ -429,6 +429,7 @@ class OutletStatic(Input):
QgsField("flow_rate", QVariant.Double),
QgsField("min_flow_rate", QVariant.Double),
QgsField("max_flow_rate", QVariant.Double),
QgsField("min_crest_level", QVariant.Double),
QgsField("control_state", QVariant.String),
]

Expand Down

0 comments on commit 5b57635

Please sign in to comment.