Skip to content

Commit

Permalink
Add reading material_id to get_pipes
Browse files Browse the repository at this point in the history
  • Loading branch information
margrietpalm committed Nov 12, 2024
1 parent 14b1e9f commit b9ce3c9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion threedigrid_builder/interface/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit b9ce3c9

Please sign in to comment.