src.plots.time_frequency_ersp_itc package

Submodules

src.plots.time_frequency_ersp_itc.time_frequency_ersp_itc_controller module

Time frequency (ERSP/ITC) controller

class src.plots.time_frequency_ersp_itc.time_frequency_ersp_itc_controller.timeFrequencyErspItcController(all_channels_names, no_channels=False)[source]

Bases: plots.time_frequency_ersp_itc.time_frequency_ersp_itc_listener.timeFrequencyErspItcListener

cancel_button_clicked()[source]

Close the window.

confirm_button_clicked(method_tfr, channel_selected, min_frequency, max_frequency, n_cycles)[source]

Close the window and send the information to the main controller. :param method_tfr: Method used for computing the time-frequency analysis. :type method_tfr: str :param channel_selected: Channel on which the time-frequency analysis will be computed. :type channel_selected: str :param min_frequency: Minimum frequency from which the time-frequency analysis will be computed. :type min_frequency: float :param max_frequency: Maximum frequency from which the time-frequency analysis will be computed. :type max_frequency: float :param n_cycles: Number of cycles used by the time-frequency analysis for his computation. :type n_cycles: int

confirm_button_clicked_from_study(method_tfr, min_frequency, max_frequency, n_cycles)[source]

Close the window and send the information to the study controller.. :param method_tfr: Method used for computing the time-frequency analysis. :type method_tfr: str :param min_frequency: Minimum frequency from which the time-frequency analysis will be computed. :type min_frequency: float :param max_frequency: Maximum frequency from which the time-frequency analysis will be computed. :type max_frequency: float :param n_cycles: Number of cycles used by the time-frequency analysis for his computation. :type n_cycles: int

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

plot_ersp_itc(channel_selected, power, itc)[source]

Send the information to the view for the plotting of the time-frequency analysis. :param channel_selected: The channel selected for the time-frequency analysis. :type channel_selected: str :param power: “power” data of the time-frequency analysis computation. :type power: MNE.AverageTFR :param itc: “itc” data of the time-frequency analysis computation. :type itc: MNE.AverageTFR

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.plots.time_frequency_ersp_itc.time_frequency_ersp_itc_listener module

Time frequency (ERSP/ITC) listener

class src.plots.time_frequency_ersp_itc.time_frequency_ersp_itc_listener.timeFrequencyErspItcListener[source]

Bases: abc.ABC

Listener doing the connection between the controller and the view for computing a time-frequency analysis on the dataset. It retrieves the information from the view to send it to the controller.

cancel_button_clicked()[source]
confirm_button_clicked(method_tfr, channel_selected, min_frequency, max_frequency, n_cycles)[source]
confirm_button_clicked_from_study(method_tfr, min_frequency, max_frequency, n_cycles)[source]

src.plots.time_frequency_ersp_itc.time_frequency_ersp_itc_view module

Time frequency (ERSP/ITC) view

class src.plots.time_frequency_ersp_itc.time_frequency_ersp_itc_view.timeFrequencyErspItcView(all_channels_names, no_channels=False)[source]

Bases: PyQt5.QtWidgets.QWidget

cancel_time_frequency_ersp_itc_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 a single channel.

confirm_time_frequency_ersp_itc_trigger()[source]

Retrieve the parameters and send the information to the controller.

static plot_ersp_itc(channel_selected, power, itc)[source]

Plot the time-frequency analysis. :param channel_selected: The channel selected for the time-frequency analysis. :type channel_selected: str :param power: “power” data of the time-frequency analysis computation. :type power: MNE.AverageTFR :param itc: “itc” data of the time-frequency analysis computation. :type itc: MNE.AverageTFR

set_channels_selected(channel_selected)[source]

Set the channel selected in the multiple selector window. :param channel_selected: The channel selected. :type channel_selected: str

set_listener(listener)[source]

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

Module contents