src.tools.re_referencing package

Submodules

src.tools.re_referencing.re_referencing_controller module

Re-referencing controller

class src.tools.re_referencing.re_referencing_controller.reReferencingController(reference, all_channels_names)[source]

Bases: tools.re_referencing.re_referencing_listener.reReferencingListener

cancel_button_clicked()[source]

Close the window.

confirm_button_clicked(references, save_data, load_data, n_jobs)[source]

Close the window and send the information to the main controller. :param references: References from which the data will be re-referenced. Can be a single or multiple channels; Can be an average of all channels; Can be a “point to infinity”. :type references: list of str; 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 parallel processes used to compute the re-referencing :type n_jobs: int

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

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.tools.re_referencing.re_referencing_listener module

Re-referencing Listener

class src.tools.re_referencing.re_referencing_listener.reReferencingListener[source]

Bases: abc.ABC

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

cancel_button_clicked()[source]
confirm_button_clicked(references, save_data, load_data, n_jobs)[source]
get_elements_selected(elements_selected)[source]

src.tools.re_referencing.re_referencing_view module

Re-referencing View

class src.tools.re_referencing.re_referencing_view.reReferencingView(reference, all_channels_names)[source]

Bases: PyQt5.QtWidgets.QWidget

cancel_re_referencing_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_re_referencing_trigger()[source]

Retrieve the parameters and send the information to the controller.

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

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

slider_value_changed_trigger()[source]

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

Module contents