Bandstop

class gpype.backend.filters.bandstop.Bandstop[source]

Bases: Butterworth

Bandstop filter implementation using Butterworth design.

Provides a convenient interface for creating bandstop (notch) filters that attenuate frequencies within a specific range while allowing frequencies outside this range to pass. Uses Butterworth design for smooth response.

class Configuration[source]

Bases: Configuration

Configuration class for Bandstop filter parameters.

class Keys[source]

Bases: Keys

Configuration keys for bandstop-specific parameters.

F_HI = 'f_hi'

Upper cutoff frequency configuration key

F_LO = 'f_lo'

Lower cutoff frequency configuration key

__init__(f_lo, f_hi, order=None, **kwargs)[source]

Initialize the bandstop filter with cutoff frequencies.

Parameters:
  • f_lo (float) – Lower cutoff frequency in Hz (lower boundary of stopband).

  • f_hi (float) – Upper cutoff frequency in Hz (upper boundary of stopband).

  • order (int) – Filter order. Defaults to DEFAULT_ORDER from parent class.

  • **kwargs – Additional arguments passed to parent Butterworth class.

Raises:

ValueError – If f_lo >= f_hi or if frequencies are invalid.