From b8c87befe4810daa537c5a6a4350c9d3494d9031 Mon Sep 17 00:00:00 2001 From: domna Date: Fri, 28 Jun 2024 16:34:43 +0200 Subject: [PATCH] fix: use findall instead of xpath --- src/pynxtools/dataconverter/nexus_tree.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pynxtools/dataconverter/nexus_tree.py b/src/pynxtools/dataconverter/nexus_tree.py index 0c1c75469..588227a1e 100644 --- a/src/pynxtools/dataconverter/nexus_tree.py +++ b/src/pynxtools/dataconverter/nexus_tree.py @@ -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, )