Skip to content

Commit 436377c

Browse files
minimized diff
1 parent 31a0adb commit 436377c

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

hydrolib/core/dflowfm/net/reader.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,7 @@ def read_mesh2d(self, mesh2d: Mesh2d) -> None:
8181
return
8282

8383
ds = nc.Dataset(self._ncfile_path) # type: ignore[import]
84-
85-
# Read mesh2d
86-
# for meshkey, nckey in self._explorer.mesh2d_var_name_mapping.items():
87-
# setattr(mesh2d, meshkey, self._read_nc_attribute(ds[nckey]))
88-
# TODO: replace with xugrid reader?
89-
84+
9085
# set mesh2d on meshkernel instance
9186
node_x = self._read_nc_attribute(ds["mesh2d_node_x"])
9287
node_y = self._read_nc_attribute(ds["mesh2d_node_y"])
@@ -115,7 +110,8 @@ def read_link1d2d(self, link1d2d: Link1d2d) -> None:
115110
for meshkey, nckey in self._explorer.link1d2d_var_name_mapping.items():
116111
setattr(link1d2d, meshkey, self._read_nc_attribute(ds[nckey]))
117112

118-
# TODO: setting contacts is not possible in meshkernel (e.g. with contacts_set())
113+
# TODO: setting contacts is not possible yet in meshkernel
114+
# https://github.com/Deltares/MeshKernelPy/issues/107
119115
# so misalignment between link1d2d.link1d2d and
120116
# empty _link1d2d.meshkernel.contacts_get().mesh2d_indices
121117
# mesh1d_indices = link1d2d.link1d2d[:,0]

0 commit comments

Comments
 (0)