src.statistics.statistics_ersp_itc package

Submodules

src.statistics.statistics_ersp_itc.statistics_ersp_itc_controller module

Statistics Time frequency (ERSP/ITC) controller

class src.statistics.statistics_ersp_itc.statistics_ersp_itc_controller.statisticsErspItcController(all_channels_names, event_ids)[source]

Bases: statistics.statistics_ersp_itc.statistics_ersp_itc_listener.statisticsErspItcListener

cancel_button_clicked()[source]

Close the window.

confirm_button_clicked(method_tfr, channel_selected, min_frequency, max_frequency, n_cycles, stats_first_variable, stats_second_variable)[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 :param stats_first_variable: The first independent variable on which the statistics must be computed (an event id) :type stats_first_variable: str :param stats_second_variable: The second independent variable on which the statistics must be computed (an event id) :type stats_second_variable: 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: str

plot_ersp_itc(channel_selected, power_one, itc_one, power_two, itc_two)[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_one: “power” data of the time-frequency analysis computation of the first independent variable. :type power_one: MNE.AverageTFR :param itc_one: “itc” data of the time-frequency analysis computation of the first independent variable. :type itc_one: MNE.AverageTFR :param power_two: “power” data of the time-frequency analysis computation of the second independent variable. :type power_two: MNE.AverageTFR :param itc_two: “itc” data of the time-frequency analysis computation of the second independent variable. :type itc_two: 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.statistics.statistics_ersp_itc.statistics_ersp_itc_listener module

Statistics Time frequency (ERSP/ITC) listener

class src.statistics.statistics_ersp_itc.statistics_ersp_itc_listener.statisticsErspItcListener[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, stats_first_variable, stats_second_variable)[source]

src.statistics.statistics_ersp_itc.statistics_ersp_itc_view module

Statistics Time frequency (ERSP/ITC) view

class src.statistics.statistics_ersp_itc.statistics_ersp_itc_view.statisticsErspItcView(all_channels_names, event_ids)[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.

create_first_independent_variable_check_boxes()[source]
create_second_independent_variable_check_boxes()[source]
get_first_independent_variable_selected()[source]

Get the first independent variable selected by the user. :return: First independent variable selected :rtype: str

get_second_independent_variable_selected()[source]

Get the second independent variable selected by the user. :return: Second independent variable selected :rtype: str

plot_ersp_itc(channel_selected, power_one, itc_one, power_two, itc_two)[source]

Plot the time-frequency analysis. :param channel_selected: The channel selected for the time-frequency analysis. :type channel_selected: str :param power_one: “power” data of the time-frequency analysis computation of the first independent variable. :type power_one: MNE.AverageTFR :param itc_one: “itc” data of the time-frequency analysis computation of the first independent variable. :type itc_one: MNE.AverageTFR :param power_two: “power” data of the time-frequency analysis computation of the second independent variable. :type power_two: MNE.AverageTFR :param itc_two: “itc” data of the time-frequency analysis computation of the second independent variable. :type itc_two: 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