From b9ce3c903ecda3046b8c62ba8800baee67ba3f3f Mon Sep 17 00:00:00 2001 From: Margriet Palm Date: Tue, 12 Nov 2024 13:39:01 +0100 Subject: [PATCH] Add reading material_id to get_pipes --- threedigrid_builder/interface/db.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/threedigrid_builder/interface/db.py b/threedigrid_builder/interface/db.py index 2c629a8d..9d15807b 100644 --- a/threedigrid_builder/interface/db.py +++ b/threedigrid_builder/interface/db.py @@ -373,7 +373,10 @@ def get_surfaces(self) -> Surfaces: .join( models.SurfaceMap, models.SurfaceMap.surface_id == models.Surface.id ) - .join(models.ConnectionNode, models.SurfaceMap.connection_node_id == models.ConnectionNode.id) + .join( + models.ConnectionNode, + models.SurfaceMap.connection_node_id == models.ConnectionNode.id, + ) .order_by(models.Surface.id) .as_structarray() ) @@ -833,6 +836,7 @@ def get_pipes(self) -> Pipes: models.Pipe.exchange_thickness, models.Pipe.hydraulic_conductivity_out, models.Pipe.hydraulic_conductivity_in, + models.Pipe.material_id, case( { models.Pipe.friction_value.isnot(None)