Skip to content

Commit 0f60b52

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 126cb2f commit 0f60b52

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

audio_filters/iir_filter.py

+10-2
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,17 @@ def set_coefficients(self, a_coeffs: list[float], b_coeffs: list[float]) -> None
5252
ValueError: If the length of `a_coeffs` or `b_coeffs` does not match the order of the filter.
5353
"""
5454
if len(a_coeffs) != self.order + 1:
55-
raise ValueError("Expected {} coefficients for `a_coeffs`, got {}".format(self.order + 1, len(a_coeffs)))
55+
raise ValueError(
56+
"Expected {} coefficients for `a_coeffs`, got {}".format(
57+
self.order + 1, len(a_coeffs)
58+
)
59+
)
5660
if len(b_coeffs) != self.order + 1:
57-
raise ValueError("Expected {} coefficients for `b_coeffs`, got {}".format(self.order + 1, len(b_coeffs)))
61+
raise ValueError(
62+
"Expected {} coefficients for `b_coeffs`, got {}".format(
63+
self.order + 1, len(b_coeffs)
64+
)
65+
)
5866

5967
self.a_coeffs = a_coeffs
6068
self.b_coeffs = b_coeffs

0 commit comments

Comments
 (0)