src.statistics.statistics_erp package

Submodules

src.statistics.statistics_erp.statistics_erp_controller module

Statistics ERP controller

class src.statistics.statistics_erp.statistics_erp_controller.statisticsErpController(all_channels_names, event_ids)[source]

Bases: statistics.statistics_erp.statistics_erp_listener.statisticsErpListener

cancel_button_clicked()[source]

Close the window.

confirm_button_clicked(channels_selected, stats_first_variable, stats_second_variable)[source]

Close the window and send the information to the main controller. :param channels_selected: The channels selected. :type channels_selected: list of 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: list of str

plot_erps(channels_selected, file_data, stats_first_variable, stats_second_variable)[source]

Plot the ERPs :param channels_selected: The channels selected for the computation :type channels_selected: list of str :param file_data: MNE data of the dataset. :type file_data: MNE.Epochs/MNE.Raw :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

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_erp.statistics_erp_listener module

Statistics ERP listener

class src.statistics.statistics_erp.statistics_erp_listener.statisticsErpListener[source]

Bases: abc.ABC

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

cancel_button_clicked()[source]
confirm_button_clicked(channels_selected, stats_first_variable, stats_second_variable)[source]

src.statistics.statistics_erp.statistics_erp_view module

Statistics ERP view

class src.statistics.statistics_erp.statistics_erp_view.statisticsErpView(all_channels_names, event_ids)[source]

Bases: PyQt5.QtWidgets.QWidget

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

confirm_erp_trigger()[source]

Retrieve the parameters and send the information to the controller.

create_first_independent_variable_check_boxes()[source]
static create_mask_from_variable_to_keep(file_data, stats_variable)[source]

Create a mask to know which trial to keep and which one to remove for the computation. :return mask: Mask of trials to remove. True means remove, and False means keep. :rtype mask: list of boolean

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_erps(channels_selected, file_data, stats_first_variable, stats_second_variable)[source]

Plot the ERPs and the statistics. :param channels_selected: The channels selected for the computation :type channels_selected: list of str :param file_data: MNE data of the dataset. :type file_data: MNE.Epochs/MNE.Raw :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

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

Module contents