Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated meshkernel apicalls to meshkernel v3 #171

Merged
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ all = [
'geopandas',
'mapbox_earcut',
'matplotlib',
'meshkernel',
'meshkernel >= 3.0.0',
'netcdf4',
'pooch',
'shapely >= 2.0',
Expand Down
2 changes: 1 addition & 1 deletion xugrid/ugrid/ugrid1d.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ def meshkernel(self) -> "mk.MeshKernel": # type: ignore # noqa
import meshkernel as mk

if self._meshkernel is None:
self._meshkernel = mk.MeshKernel(is_geographic=False)
self._meshkernel = mk.MeshKernel()
self._meshkernel.mesh1d_set(self.mesh)
return self._meshkernel

Expand Down
2 changes: 1 addition & 1 deletion xugrid/ugrid/ugrid2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,7 @@ def meshkernel(self) -> "mk.MeshKernel": # type: ignore # noqa
import meshkernel as mk

if self._meshkernel is None:
self._meshkernel = mk.MeshKernel(is_geographic=False)
self._meshkernel = mk.MeshKernel()
self._meshkernel.mesh2d_set(self.mesh)
return self._meshkernel

Expand Down
Loading