Skip to content

Commit e149934

Browse files
committed
remove unusable code for checking link types
1 parent 85012e9 commit e149934

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

src/pynxtools/dataconverter/validation.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -318,22 +318,6 @@ def find_node_for(
318318
f"The type ('{node_type}') of {path} conflicts with another existing concept "
319319
f"{other_node.get_path()} (which is of type '{other_node.nx_type}'."
320320
)
321-
# TODO: This does not work yet, we need a better way to check that a linked object matches
322-
# the expected type.
323-
# elif node_type == "group" and other_node_type == "field":
324-
# collector.collect_and_log(
325-
# f"{entry_name}/{path}",
326-
# ValidationProblem.ExpectedField,
327-
# None,
328-
# )
329-
# raise TypeError("Expected field for {path}")
330-
# elif node_type == "field" and other_node_type == "group":
331-
# collector.collect_and_log(
332-
# f"{entry_name}/{path}",
333-
# ValidationProblem.ExpectedGroup,
334-
# None,
335-
# )
336-
# raise TypeError("Expected group for {path}")
337321

338322
return None
339323

0 commit comments

Comments
 (0)