File tree Expand file tree Collapse file tree 1 file changed +0
-16
lines changed
src/pynxtools/dataconverter Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments