mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-05 01:09:40 +08:00
Use compiled black as the pre-commit formatter (#11247)
* Use compiled black as the pre-commit formatter * ruff-format * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Keep GitHub Actions up to date with Dependabot --------- Co-authored-by: Christian Clauss <cclauss@me.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
@ -11,7 +11,9 @@ Alternatively you can use scipy.signal.butter, which should yield the same resul
|
||||
|
||||
|
||||
def make_lowpass(
|
||||
frequency: int, samplerate: int, q_factor: float = 1 / sqrt(2) # noqa: B008
|
||||
frequency: int,
|
||||
samplerate: int,
|
||||
q_factor: float = 1 / sqrt(2), # noqa: B008
|
||||
) -> IIRFilter:
|
||||
"""
|
||||
Creates a low-pass filter
|
||||
@ -39,7 +41,9 @@ def make_lowpass(
|
||||
|
||||
|
||||
def make_highpass(
|
||||
frequency: int, samplerate: int, q_factor: float = 1 / sqrt(2) # noqa: B008
|
||||
frequency: int,
|
||||
samplerate: int,
|
||||
q_factor: float = 1 / sqrt(2), # noqa: B008
|
||||
) -> IIRFilter:
|
||||
"""
|
||||
Creates a high-pass filter
|
||||
@ -67,7 +71,9 @@ def make_highpass(
|
||||
|
||||
|
||||
def make_bandpass(
|
||||
frequency: int, samplerate: int, q_factor: float = 1 / sqrt(2) # noqa: B008
|
||||
frequency: int,
|
||||
samplerate: int,
|
||||
q_factor: float = 1 / sqrt(2), # noqa: B008
|
||||
) -> IIRFilter:
|
||||
"""
|
||||
Creates a band-pass filter
|
||||
@ -96,7 +102,9 @@ def make_bandpass(
|
||||
|
||||
|
||||
def make_allpass(
|
||||
frequency: int, samplerate: int, q_factor: float = 1 / sqrt(2) # noqa: B008
|
||||
frequency: int,
|
||||
samplerate: int,
|
||||
q_factor: float = 1 / sqrt(2), # noqa: B008
|
||||
) -> IIRFilter:
|
||||
"""
|
||||
Creates an all-pass filter
|
||||
|
Reference in New Issue
Block a user