NotchList

class NotchList(notch_list)[source]

Bases: list

__init__(notch_list)[source]

A list of notches

Parameters:
notch_list: list

A list of length-2 tuples of the (max, min) frequency for the notches.

Raises:
ValueError

If the list is malformed.

__call__(*args, **kwargs)

Call self as a function.

Methods

__init__(notch_list)

A list of notches

check_frequency(freq)

Check if freq is inside the notch list

check_frequency(freq)[source]

Check if freq is inside the notch list

Parameters:
freq: float

The frequency to check

Returns:
True/False:

If freq inside any of the notches, return True, else False