Skip to content

Commit 485cd0a

Browse files
committed
black formatting
1 parent fdf6c05 commit 485cd0a

1 file changed

Lines changed: 7 additions & 10 deletions

File tree

dev_tools/utils/nxdl_utils.py

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -316,21 +316,18 @@ def is_name_type(child, name_type_value: str) -> bool:
316316
name_type_value (str): The nameType value to compare against ("any" or "partial").
317317
318318
"""
319-
if (child.attrib.get("nameType") == name_type_value):
319+
if child.attrib.get("nameType") == name_type_value:
320320
return True
321-
322321

323-
if name_type_value == "any" and(
324-
get_local_name_from_xml(child) == "group" and
325-
"nameType" not in child.attrib and
326-
"name" not in child.attrib):
322+
if name_type_value == "any" and (
323+
get_local_name_from_xml(child) == "group"
324+
and "nameType" not in child.attrib
325+
and "name" not in child.attrib
326+
):
327327
return True
328328
return False
329329

330330

331-
332-
333-
334331
def belongs_to(nxdl_elem, child, name, class_type=None, hdf_name=None):
335332
"""Checks if an HDF5 node name corresponds to a child of the NXDL element
336333
uppercase letters in front can be replaced by arbitraty name, but
@@ -858,7 +855,7 @@ def get_best_child(nxdl_elem, hdf_node, hdf_name, hdf_class_name, nexus_type):
858855
nexus_type != "group" or get_nx_class(child) == hdf_class_name
859856
):
860857
name_any = is_name_type(child, "any")
861-
name_partial = is_name_type(child, "partial")
858+
name_partial = is_name_type(child, "partial")
862859
if name_partial or name_any:
863860
fit = get_nx_namefit(
864861
hdf_name,

0 commit comments

Comments
 (0)