src.tools.extract_epochs package

Submodules

src.tools.extract_epochs.extract_epochs_controller module

Extract Epochs Controller

class src.tools.extract_epochs.extract_epochs_controller.extractEpochsController(event_values, event_ids)[source]

Bases: tools.extract_epochs.extract_epochs_listener.extractEpochsListener

cancel_button_clicked()[source]

Close the window.

confirm_button_clicked(tmin, tmax, trials_selected)[source]

Close the window and send the information to the main controller. :param tmin: Start time of the epoch to keep :type tmin: float :param tmax: End time of the epoch to keep :type tmax: float

get_elements_selected(elements_selected, element_type)[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 :param element_type: Type of the element selected, used in case multiple element selector windows can be open in a window. Can thus distinguish the returned elements. :type element_type: 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.extract_epochs.extract_epochs_listener module

Extract Epochs Listener

class src.tools.extract_epochs.extract_epochs_listener.extractEpochsListener[source]

Bases: abc.ABC

Listener doing the connection between the controller and the view for extracting epochs from the dataset. It retrieves the information from the view to send it to the controller.

cancel_button_clicked()[source]
confirm_button_clicked(tmin, tmax, trials_selected)[source]

src.tools.extract_epochs.extract_epochs_view module

Extract Epochs View

class src.tools.extract_epochs.extract_epochs_view.extractEpochsView(event_values, event_ids)[source]

Bases: PyQt5.QtWidgets.QWidget

cancel_extract_epochs_trigger()[source]

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

confirm_extract_epochs_trigger()[source]

Retrieve the parameters and send the information to the controller.

event_selection_indexes_trigger()[source]

Open the multiple selector window. The user can select the event indexes he wants the extraction to be computed on.

selection_events_trigger()[source]

Open the multiple selector window. The user can select the events type he wants the extraction to be computed on.

set_listener(listener)[source]

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

set_trials_selected(elements_selected, element_type)[source]

Set the channels selected in the multiple selector window. :param elements_selected: Trials or Events selected. :type elements_selected: list of str :param element_type: Type of the element selected, used in case multiple element selector windows can be open in a window. Can thus distinguish the returned elements. :type element_type: str

Module contents