Skip to content

Commit b29dab9

Browse files
committed
Ruff
1 parent 48fec69 commit b29dab9

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/pynxtools_spm/nxformatters/base_formatter.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,9 @@ def _handle_special_fields(self):
671671
r"active_channel$": str,
672672
r"model/@version$": str,
673673
r"/model$": str,
674-
r"lockin_amplifier/(demodulated|modulation)_signal$": lambda input: input.lower(),
674+
r"lockin_amplifier/(demodulated|modulation)_signal$": lambda input: (
675+
input.lower()
676+
),
675677
r"lockin_amplifier/(hp|lp){1,}_filter_orderN\[\1_filter_order_[\w]*\]$": (
676678
lambda input: input if isinstance(input, (int, float)) else ""
677679
),

tests/functionality_test.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@
2929
)
3030
def test_replace_variadic_name_part(name, part_to_embed, expected):
3131
result = replace_variadic_name_part(name, part_to_embed)
32-
assert (
33-
result == expected
34-
), f"Failed for {name}, {part_to_embed}: got {result}, expected {expected}"
32+
assert result == expected, (
33+
f"Failed for {name}, {part_to_embed}: got {result}, expected {expected}"
34+
)

0 commit comments

Comments
 (0)