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
Close the window.
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
src.statistics.statistics_erp.statistics_erp_listener module¶
Statistics ERP listener
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.
-
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
-
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
-