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
Close the window.
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
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
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.
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
-