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
Close the window.
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
src.tools.signal_to_noise_ratio.signal_to_noise_ratio_listener module¶
SNR listener
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.
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.
-