src.study.study_plots package

Submodules

src.study.study_plots.study_plots_controller module

Study Plots Controller

class src.study.study_plots.study_plots_controller.studyPlotsController(study)[source]

Bases: study.study_plots.study_plots_listener.studyPlotsListener

static adapt_events(all_file_data)[source]

Adapts the events on all the epochs so that they are all common and the epochs can thus be concatenated. :param all_file_data: The epochs on which the events must be adapted. :type all_file_data: list of MNE Epochs :return: The new epochs with the events adapted for concatenation :rtype: list of MNE Epochs

cancel_button_clicked()[source]

Close the window.

confirm_button_clicked()[source]

Close the window and send the information to the main controller

plot_erp_image_clicked(channels_selected, subjects_selected)[source]

Call the study to plot the erp image on the given data. :param channels_selected: Channels selected :type channels_selected: str/list of str :param subjects_selected: Subjects selected :type subjects_selected: str/list of str

plot_erps_clicked(channels_selected, subjects_selected)[source]

Call the study to plot the erps on the given data. :param channels_selected: Channels selected :type channels_selected: str/list of str :param subjects_selected: Subjects selected :type subjects_selected: str/list of str

plot_ersp_itc_clicked(channels_selected, subjects_selected)[source]

Call the study to plot the ersp and itc on the given data. :param channels_selected: Channels selected :type channels_selected: str/list of str :param subjects_selected: Subjects selected :type subjects_selected: str/list of str

plot_psd_clicked(channels_selected, subjects_selected)[source]

Call the study to plot the psd on the given data. :param channels_selected: Channels selected :type channels_selected: str/list of str :param subjects_selected: Subjects selected :type subjects_selected: str/list of str

plot_spectra_maps_computation_error()[source]

Close the waiting window when the computation of the power spectral density is done on the dataset.

plot_spectra_maps_computation_finished()[source]

Close the waiting window when the computation of the power spectral density is done on the dataset.

plot_spectra_maps_finished()[source]

The computation of the power spectral density is completely done, plot it.

plot_spectra_maps_information(minimum_frequency, maximum_frequency, minimum_time, maximum_time, topo_time_points)[source]

Create the waiting window while the computation of the power spectral density is done on the dataset. :param minimum_frequency: Minimum frequency from which the power spectral density will be computed. :type minimum_frequency: float :param maximum_frequency: Maximum frequency from which the power spectral density will be computed. :type maximum_frequency: float :param minimum_time: Minimum time of the epochs from which the power spectral density will be computed. :type minimum_time: float :param maximum_time: Maximum time of the epochs from which the power spectral density will be computed. :type maximum_time: float :param topo_time_points: The time points for the topomaps. :type topo_time_points: list of float

plot_time_frequency_computation_error()[source]

Close the waiting window and display an error message because an error occurred during the computation.

plot_time_frequency_computation_finished()[source]

Close the waiting window when the computation of the time-frequency analysis is done on the dataset.

plot_time_frequency_finished()[source]

The computation of the time-frequency analysis is completely done, plot it.

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

Create the waiting window while the computation of the time-frequency analysis is done on the dataset. :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

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.study.study_plots.study_plots_listener module

Study Plots Listener

class src.study.study_plots.study_plots_listener.studyPlotsListener[source]

Bases: abc.ABC

Listener doing the connection between the controller and the view for plotting data of the study. It retrieves the information from the view to send it to the controller.

cancel_button_clicked()[source]
confirm_button_clicked()[source]
plot_erp_image_clicked(channels_selected, subjects_selected)[source]
plot_erps_clicked(channels_selected, subjects_selected)[source]
plot_ersp_itc_clicked(channels_selected, subjects_selected)[source]
plot_psd_clicked(channels_selected, subjects_selected)[source]
plot_spectra_maps_computation_error()[source]
plot_spectra_maps_computation_finished()[source]
plot_spectra_maps_finished()[source]
plot_spectra_maps_information(minimum_frequency, maximum_frequency, minimum_time, maximum_time, topo_time_points)[source]

src.study.study_plots.study_plots_view module

Study Plots View

class src.study.study_plots.study_plots_view.studyPlotsView(study)[source]

Bases: PyQt5.QtWidgets.QWidget

cancel_study_trigger()[source]

Send the information to the controller that the computation is cancelled.

confirm_study_trigger()[source]

Retrieve all the additional information and send the information to the controller.

create_channels_check_boxes()[source]
create_select_unselect_channels_buttons()[source]
create_select_unselect_subjects_buttons()[source]
create_subjects_check_boxes()[source]
erp_image_trigger()[source]

Retrieve all the information for plotting the erp image.

erps_trigger()[source]

Retrieve all the information for plotting the erps.

ersp_itc_trigger()[source]

Retrieve all the information for plotting the ersp and itc.

get_all_channels_selected()[source]

Get the elements selected by the user. :return: Channels selected :rtype: str/list of str

get_all_subjects_selected()[source]

Get the subjects selected by the user. :return: Subjects selected :rtype: str/list of str

plot_erp_image(file_data, channel_selected)[source]

Plot the ERP image for the data provided by the study. :param file_data: The data containing the ERP image to plot :type file_data: MNE Epochs :param channel_selected: The channels selected. :type channel_selected: str

plot_erps(evoked)[source]

Plot the ERPs for the evoked data provided by the study. :param evoked: The evoked data to plot :type evoked: MNE Evoked

psd_trigger()[source]

Retrieve all the information for plotting the psd.

select_all_channels_trigger()[source]

Select all the channels of the window.

select_all_subjects_trigger()[source]

Select all the subjects of the window.

set_listener(listener)[source]

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

unselect_all_channels_trigger()[source]

Unselect all the channels of the window.

unselect_all_subjects_trigger()[source]

Unselect all the subjects of the window.

Module contents