OnlineProtocol#

class myogestic.gui.protocols.OnlineProtocol(main_window)[source]#

Class for handling the online protocol of the MyoGestic application.

Parameters:

main_window (MyoGestic) – The main window of the application.

_main_window#

The main window of the application.

Type:

MyoGestic

_selected_visual_interface#

The selected visual interface for the online protocol.

Type:

VisualInterface | None

_time_since_last_prediction#

Time since the last prediction.

Type:

float

_model_interface#

The model interface for the online protocol.

Type:

MyoGesticModelInterface | None

_biosignal_recording__buffer#

Buffer for storing the biosignal data.

Type:

list[(float, np.ndarray)]

_ground_truth_recording__buffer#

Buffer for storing the ground truth data.

Type:

list[(float, np.ndarray)]

_prediction_before_filter_recording__buffer#

Buffer for storing the predictions before filtering.

Type:

list[(float, np.ndarray)]

_predictions_after_filter_recording__buffer#

Buffer for storing the predictions after filtering.

Type:

list[(float, np.ndarray)]

_selected_real_time_filter_recording__buffer#

Buffer for storing the selected real-time filter.

Type:

list[(float, str)]

recording_start_time#

Start time of the recording.

Type:

float

_device_information__dict#

Information about the device.

Type:

dict[str, Any] | None

_model_information__dict#

Information about the model.

Type:

dict[str, Any] | None

active_monitoring_widgets#

Active monitoring widgets.

Type:

dict[str, _MonitoringWidgetBaseClass]

_output_systems__dict#

Output systems for the online

Type:

dict[str, OutputSystemTemplate]

Methods