Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/PH-Tools/PHX
Browse files Browse the repository at this point in the history
  • Loading branch information
ed-p-may committed Jun 25, 2024
2 parents a98acc6 + 93518e9 commit afc2a7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PHX/from_WUFI_XML/read_WUFI_XML_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def xml_to_dict(element: etree._Element, _level: int = 0) -> Dict[Union[List, st
# It is finally an actual data item
d[child.tag] = Tag(child.text, child.tag, child.attrib) # .text
elif _is_list_element(child):
# -- Fucking WUFI... sometimes the unit data is up at the parent
# -- Oy... WUFI... sometimes the unit data is up at the parent
if "unit" in getattr(child, "attrib", ""):
for _ in child:
_.attrib["unit"] = child.attrib.get("unit", "")
Expand Down

0 comments on commit afc2a7f

Please sign in to comment.