src.connectivity.envelope_correlation package

Submodules

src.connectivity.envelope_correlation.envelope_correlation_controller module

Envelope Correlation Controller

class src.connectivity.envelope_correlation.envelope_correlation_controller.envelopeCorrelationController(number_of_channels, file_data)[source]

Bases: connectivity.envelope_correlation.envelope_correlation_listener.envelopeCorrelationListener

additional_parameters_clicked()[source]

Create a new window for specifying the exportation path of the computation of the envelope correlation.

additional_parameters_information(export_path)[source]

Retrieve the exportation path for the envelope correlation data computed. :param export_path: Path where the envelope correlation data will be stored. :type export_path: str

cancel_button_clicked()[source]

Close the window.

confirm_button_clicked(psi, fmin, fmax, connectivity_method, n_jobs)[source]

Close the window and send the information to the main controller. :param psi: Check if the computation of the Phase Slope Index must be done. The PSI give an indication to the directionality of the connectivity. :type psi: bool :param fmin: Minimum frequency from which the envelope correlation will be computed. :type fmin: float :param fmax: Maximum frequency from which the envelope correlation will be computed. :type fmax: float :param connectivity_method: Method used for computing the source space connectivity. :type connectivity_method: str :param n_jobs: Number of processes used to compute the source estimation :type n_jobs: int

plot_envelope_correlation(envelope_correlation_data, psi, channel_names)[source]

Send the information to the view to plot the envelope correlation. :param envelope_correlation_data: The envelope correlation data to plot. :type envelope_correlation_data: list of, list of float :param psi: Values of the computation of the PSI, if None then the computation has not been done. The PSI give an indication to the directionality of the connectivity. :type psi: list of, list of float :param channel_names: Channels’ names :type channel_names: list of 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.connectivity.envelope_correlation.envelope_correlation_listener module

Envelope Correlation Listener

class src.connectivity.envelope_correlation.envelope_correlation_listener.envelopeCorrelationListener[source]

Bases: abc.ABC

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

additional_parameters_clicked()[source]
additional_parameters_information(export_path)[source]
cancel_button_clicked()[source]
confirm_button_clicked(psi, fmin, fmax, connectivity_method, n_jobs)[source]

src.connectivity.envelope_correlation.envelope_correlation_view module

Envelope Correlation view

class src.connectivity.envelope_correlation.envelope_correlation_view.envelopeCorrelationView(number_of_channels, file_data)[source]

Bases: PyQt5.QtWidgets.QWidget

cancel_envelope_correlation_trigger()[source]

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

confirm_envelope_correlation_trigger()[source]

Retrieve the parameters and send the information to the controller.

data_exportation_trigger()[source]

Open a new window asking for the path for the exportation of the envelope correlation data

static keep_picks_PSI_data(psi, channel_names, picks)[source]

Keep the PSI data from the channels that are in the picks. :param psi: Values of the computation of the PSI, if None then the computation has not been done. The PSI give an indication to the directionality of the connectivity. :type psi: list of, list of float :param channel_names: Channels’ names :type channel_names: list of str :param picks: The channels to keep :type picks: list of str :return: All the PSI data kept with the picks :rtype: list of, list of float

plot_envelope_correlation(envelope_correlation_data, psi, channel_names)[source]

Plot the envelope correlation computed. :param envelope_correlation_data: The envelope correlation data to plot. :type envelope_correlation_data: list of, list of float :param psi: Values of the computation of the PSI, if None then the computation has not been done. The PSI give an indication to the directionality of the connectivity. :type psi: list of, list of float :param channel_names: Channels’ names :type channel_names: list of str

static plot_psi(psi, channel_names)[source]

Plot the Phase Slope Index computed. :param psi: Values of the computation of the PSI, if None then the computation has not been done. The PSI give an indication to the directionality of the connectivity. :type psi: list of, list of float :param channel_names: Channels’ names :type channel_names: list of str

plot_psi_topographies(psi, channel_names)[source]

Plot the PSI values as topographies on predefined points of the headset. :param psi: Values of the computation of the PSI, if None then the computation has not been done. The PSI give an indication to the directionality of the connectivity. :type psi: list of, list of float :param channel_names: Channels’ names :type channel_names: list of str

plot_psi_values(psi, channel_names)[source]

Plot the values of the Phase Slope Index computed. :param psi: Values of the computation of the PSI, if None then the computation has not been done. The PSI give an indication to the directionality of the connectivity. :type psi: list of, list of float :param channel_names: Channels’ names :type channel_names: list of str

plot_topographies_on_pick(ax, ch_idx)[source]

This block of code is executed once you click on one of the channel axes in the plot. To work with the viz internals, this function should only take two parameters, the axis and the channel or data index.

set_listener(listener)[source]

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

slider_value_changed_trigger()[source]

Change the value of the slider displayed on the window when the actual slider is moved.

class src.connectivity.envelope_correlation.envelope_correlation_view.psiValuesWindow(psi, channel_names)[source]

Bases: PyQt5.QtWidgets.QWidget

Module contents