src.connectivity.source_space_connectivity package

Submodules

src.connectivity.source_space_connectivity.source_space_connectivity_controller module

Source Space Connectivity Controller

class src.connectivity.source_space_connectivity.source_space_connectivity_controller.sourceSpaceConnectivityController(number_of_channels)[source]

Bases: connectivity.source_space_connectivity.source_space_connectivity_listener.sourceSpaceConnectivityListener

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 source space connectivity data computed. :param export_path: Path where the source space connectivity data will be stored. :type export_path: str

cancel_button_clicked()[source]

Close the window.

confirm_button_clicked(connectivity_method, spectrum_estimation_method, source_estimation_method, save_data, load_data, n_jobs, psi, fmin, fmax)[source]

Close the window and send the information to the main controller. :param connectivity_method: Method used for computing the source space connectivity. :type connectivity_method: str :param spectrum_estimation_method: Method used for computing the spectrum estimation used inside the computation of the source space connectivity. :type spectrum_estimation_method: str :param source_estimation_method: Method used for computing the source estimation used inside the computation of the source space connectivity. :type source_estimation_method: str :param save_data: Boolean telling if the data computed must be saved into files. :type save_data: bool :param load_data: Boolean telling if the data used for the computation can be read from computer files. :type load_data: bool :param n_jobs: Number of processes used to compute the source estimation :type n_jobs: int :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

plot_source_space_connectivity(source_space_connectivity_data, psi)[source]

Send the information to the view to plot the source space connectivity. :param source_space_connectivity_data: The source space connectivity data. :type source_space_connectivity_data: list of, list of float :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

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.source_space_connectivity.source_space_connectivity_listener module

Source Space Connectivity Listener

class src.connectivity.source_space_connectivity.source_space_connectivity_listener.sourceSpaceConnectivityListener[source]

Bases: abc.ABC

Listener doing the connection between the controller and the view for computing the source space connectivity 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(connectivity_method, spectrum_estimation_method, source_estimation_method, save_data, load_data, n_jobs, psi, fmin, fmax)[source]

src.connectivity.source_space_connectivity.source_space_connectivity_view module

Source Space Connectivity View

class src.connectivity.source_space_connectivity.source_space_connectivity_view.sourceSpaceConnectivityView(number_of_channels)[source]

Bases: PyQt5.QtWidgets.QWidget

cancel_source_space_connectivity_trigger()[source]

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

confirm_source_space_connectivity_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 source space connectivity data

get_save_load_button_checked()[source]

Get the values of the save and load buttons. :return: save_data: True if the data must be saved. Otherwise, False. load_data: True if the data must be loaded. Otherwise, False. :rtype: boolean, boolean

static plot_psi(psi, label_names)[source]

Plot the Phase Slope Index computed. :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 label_names: Labels’ names :type label_names: list of str

plot_source_space_connectivity(source_space_connectivity_data, psi)[source]

Plot the source space connectivity data. :param source_space_connectivity_data: The source space connectivity data. :type source_space_connectivity_data: list of, list of float :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

set_listener(listener)[source]

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

slider_value_changed_trigger()[source]

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

Module contents