File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
hydrolib/core/dflowfm/net Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -81,12 +81,7 @@ def read_mesh2d(self, mesh2d: Mesh2d) -> None:
81
81
return
82
82
83
83
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
+
90
85
# set mesh2d on meshkernel instance
91
86
node_x = self ._read_nc_attribute (ds ["mesh2d_node_x" ])
92
87
node_y = self ._read_nc_attribute (ds ["mesh2d_node_y" ])
@@ -115,7 +110,8 @@ def read_link1d2d(self, link1d2d: Link1d2d) -> None:
115
110
for meshkey , nckey in self ._explorer .link1d2d_var_name_mapping .items ():
116
111
setattr (link1d2d , meshkey , self ._read_nc_attribute (ds [nckey ]))
117
112
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
119
115
# so misalignment between link1d2d.link1d2d and
120
116
# empty _link1d2d.meshkernel.contacts_get().mesh2d_indices
121
117
# mesh1d_indices = link1d2d.link1d2d[:,0]
You can’t perform that action at this time.
0 commit comments