Skip to content

Commit 1201748

Browse files
committed
formatting
1 parent 7e40c0d commit 1201748

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

dev_tools/tests/test_nxdl_utils.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ def test_get_node_at_nxdl_path():
4848
)
4949
assert node.attrib["name"] == "long_name"
5050

51-
nxdl_file_path = local_dir.parent.parent / "contributed_definitions" / "NXiv_temp.nxdl.xml"
51+
nxdl_file_path = (
52+
local_dir.parent.parent / "contributed_definitions" / "NXiv_temp.nxdl.xml"
53+
)
5254
elem = ET.parse(nxdl_file_path).getroot()
5355
node = nexus.get_node_at_nxdl_path(
5456
"/ENTRY/INSTRUMENT/ENVIRONMENT/voltage_controller", elem=elem
@@ -70,7 +72,9 @@ def test_get_inherited_nodes():
7072
(_, _, elist) = nexus.get_inherited_nodes(nxdl_path="/ENTRY/NXODD_name", elem=elem)
7173
assert len(elist) == 3
7274

73-
nxdl_file_path = local_dir.parent.parent / "contributed_definitions" / "NXiv_temp.nxdl.xml"
75+
nxdl_file_path = (
76+
local_dir.parent.parent / "contributed_definitions" / "NXiv_temp.nxdl.xml"
77+
)
7478

7579
elem = ET.parse(nxdl_file_path).getroot()
7680
(_, _, elist) = nexus.get_inherited_nodes(

dev_tools/utils/nxdl_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def decode_or_not(elem, encoding: str = "utf-8", decode: bool = True):
4646
try:
4747
return elem.decode(encoding)
4848
except UnicodeDecodeError as e:
49-
e.add_note(f'Error decoding bytes object: {elem}')
49+
e.add_note(f"Error decoding bytes object: {elem}")
5050
raise
5151

5252
return elem

0 commit comments

Comments
 (0)