src.tools.signal_to_noise_ratio package

Submodules

src.tools.signal_to_noise_ratio.signal_to_noise_ratio_controller module

SNR controller

class src.tools.signal_to_noise_ratio.signal_to_noise_ratio_controller.signalToNoiseRatioController(all_channels_names, event_values, event_ids)[source]

Bases: tools.signal_to_noise_ratio.signal_to_noise_ratio_listener.signalToNoiseRatioListener

cancel_button_clicked()[source]

Close the window.

confirm_button_clicked(snr_methods, source_method, read, write, picks, trials_selected)[source]

Close the window and send the information to the main controller.

get_elements_selected(elements_selected, element_type)[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 :param element_type: Type of the element selected, used in case multiple element selector windows can be open in a window. Can thus distinguish the returned elements. :type element_type: str

plot_SNRs(SNRs, SNR_methods)[source]

Plot the SNRs :param SNRs: SNRs :type SNRs: list of, list of float :param SNR_methods: SNR methods :type SNR_methods: 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.signal_to_noise_ratio.signal_to_noise_ratio_listener module

SNR listener

class src.tools.signal_to_noise_ratio.signal_to_noise_ratio_listener.signalToNoiseRatioListener[source]

Bases: abc.ABC

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

cancel_button_clicked()[source]
confirm_button_clicked(snr_methods, source_method, read, write, picks, trials_selected)[source]
get_elements_selected(elements_selected, element_type)[source]

src.tools.signal_to_noise_ratio.signal_to_noise_ratio_view module

SNR view

class src.tools.signal_to_noise_ratio.signal_to_noise_ratio_view.signalToNoiseRatioView(all_channels_names, event_values, event_ids)[source]

Bases: PyQt5.QtWidgets.QWidget

cancel_snr_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.

check_element_type(elements_selected, element_type)[source]
confirm_snr_trigger()[source]

Retrieve the parameters and send the information to the controller.

get_save_load_button_checked()[source]

Get the values of the save and load buttons. :return: save_data: True if the data must be saved. Otherwise, False. load_data: True if the data must be loaded. Otherwise, False. :rtype: boolean, boolean

static plot_SNRs(SNRs, SNR_methods)[source]

Plot the SNRs :param SNRs: SNRs :type SNRs: list of, list of float :param SNR_methods: SNR methods :type SNR_methods: list of str

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: signalToNoiseRatioController

set_snr_methods_selected(snr_methods)[source]

Set the SNR methods selected in the multiple selector window. :param snr_methods: SNR methods selected :type snr_methods: list of str

set_trials_selected(elements_selected, element_type)[source]

Set the channels selected in the multiple selector window. :param elements_selected: Trials or Events selected. :type elements_selected: list of str :param element_type: Type of the element selected, used in case multiple element selector windows can be open in a window. Can thus distinguish the returned elements. :type element_type: str

snr_selection_trigger()[source]

Open the multiple selector window. The user can select a multiple pipelines used for the classification.

trial_selection_events_trigger()[source]

Open the multiple selector window. The user can select the events he wants the source estimation to be computed on.

trial_selection_indexes_trigger()[source]

Open the multiple selector window. The user can select the trials indexes he wants the source estimation to be computed on.

Module contents