src.tools.filter package

Submodules

src.tools.filter.filter_controller module

Filter controller

class src.tools.filter.filter_controller.filterController(all_channels_names)[source]

Bases: tools.filter.filter_listener.filterListener

cancel_button_clicked()[source]

Close the window.

confirm_button_clicked(low_frequency, high_frequency, channels_selected, filter_method)[source]

Close the window and send the information to the main controller. :param low_frequency: Lowest frequency from where the data will be filtered. :type low_frequency: float :param high_frequency: Highest frequency from where the data will be filtered. :type high_frequency: float :param channels_selected: Channels on which the filtering will be performed. :type channels_selected: list of str :param filter_method: Method used for the filtering, either FIR or IIR. :type filter_method: str

get_elements_selected(elements_selected)[source]

Get the elements selected by the user in the multiple elements’ selector. :param elements_selected: Elements selected in the multiple elements’ selector. :type elements_selected: list of str

set_listener(listener)[source]

Set the main listener so that the controller is able to communicate with the main controller. :param listener: main listener :type listener: mainController

src.tools.filter.filter_listener module

Filter listener

class src.tools.filter.filter_listener.filterListener[source]

Bases: abc.ABC

Listener doing the connection between the controller and the view for computing the filtering on the dataset. It retrieves the information from the view to send it to the controller.

cancel_button_clicked()[source]
confirm_button_clicked(low_frequency, high_frequency, channels_selected, filter_method)[source]
get_elements_selected(elements_selected)[source]

src.tools.filter.filter_view module

Filter view

class src.tools.filter.filter_view.filterView(all_channels_names)[source]

Bases: PyQt5.QtWidgets.QWidget

cancel_filtering_trigger()[source]

Send the information to the controller that the computation is cancelled.

channels_selection_trigger()[source]

Open the multiple selector window. The user can select multiple channels.

confirm_filtering_trigger()[source]

Retrieve the parameters and send the information to the controller.

set_channels_selected(channels_selected)[source]

Set the channels selected in the multiple selector window. :param channels_selected: Channels selected. :type channels_selected: list of str

set_listener(listener)[source]

Set the listener to the controller. :param listener: Listener to the controller. :type listener: filterController

Module contents