Skip to content

Commit de55325

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

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

audio_filters/butterworth_filter.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ def make_lowpass(
2626
raise ValueError("Frequency must be a positive value.")
2727
if frequency >= samplerate / 2:
2828
# Nyquist frequency limit check
29-
raise ValueError(f"Frequency ({frequency} Hz) must be less than the Nyquist frequency ({samplerate / 2} Hz).")
29+
raise ValueError(
30+
f"Frequency ({frequency} Hz) must be less than the Nyquist frequency ({samplerate / 2} Hz)."
31+
)
3032
# --- Input Validation End ---
3133

3234
w0 = tau * frequency / samplerate

0 commit comments

Comments
 (0)