From 736765a0d781376d8303b2a7ea783b6a0207f09f Mon Sep 17 00:00:00 2001 From: veenstrajelmer Date: Mon, 23 Oct 2023 13:21:09 +0200 Subject: [PATCH] update fundamental changes to make import possible again --- hydrolib/core/dflowfm/net/models.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hydrolib/core/dflowfm/net/models.py b/hydrolib/core/dflowfm/net/models.py index 460ebaac2..f5c13e24a 100644 --- a/hydrolib/core/dflowfm/net/models.py +++ b/hydrolib/core/dflowfm/net/models.py @@ -1105,11 +1105,11 @@ def get_node_mask(self, branchids: List[str] = None): class Network: - def __init__(self, is_geographic: bool = False) -> None: - self.meshkernel = mk.MeshKernel(is_geographic=is_geographic) + def __init__(self, projection: bool = False) -> None: + self.meshkernel = mk.MeshKernel(projection=projection) # Monkeypatch the meshkernel object, because the "is_geographic" is not saved # otherwise, and needed for reinitializing the meshkernel - self.meshkernel.is_geographic = is_geographic + self.meshkernel.projection = projection self._mesh1d = Mesh1d(meshkernel=self.meshkernel) self._mesh2d = Mesh2d(meshkernel=self.meshkernel) @@ -1182,7 +1182,7 @@ def mesh2d_create_triangular_within_polygon(self, polygon: mk.GeometryList) -> N def mesh2d_clip_mesh( self, geometrylist: mk.GeometryList, - deletemeshoption: mk.DeleteMeshOption = mk.DeleteMeshOption.ALL_FACE_CIRCUMCENTERS, + deletemeshoption: mk.DeleteMeshOption = mk.DeleteMeshOption.INSIDE_NOT_INTERSECTED, inside=True, ) -> None: self._mesh2d.clip(