Skip to content

Commit

Permalink
fix: use findall instead of xpath
Browse files Browse the repository at this point in the history
  • Loading branch information
domna committed Jun 28, 2024
1 parent 3bc649a commit b8c87be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pynxtools/dataconverter/nexus_tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ def _build_inheritance_chain(self, xml_elem: ET._Element) -> List[ET._Element]:
)
if not inherited_elem and name is not None:
# Try to namefit
groups = elem.xpath(
groups = elem.findall(
f"nx:group[@type='{xml_elem.attrib['type']}']",
namespaces=namespaces,
)
Expand Down

0 comments on commit b8c87be

Please sign in to comment.