Online Protocol (Panel)

class myogestic.gui.protocols.online.OnlineProtocol(parent=Ellipsis)[source]

Bases: QObject

Class for handling the online protocol of the MyoGestic application.

Parameters:

parent (MyoGestic | None) – The parent object of the protocol object.

main_window

The main window of the MyoGestic application.

Type:

MyoGestic

emg_buffer

Buffer for storing the EMG data.

Type:

list[np.ndarray]

kinematics_buffer

Buffer for storing the kinematics data.

Type:

list[(int, np.ndarray)]

buffer_emg_recording

Buffer for storing the EMG data during recording.

Type:

list[(float, np.ndarray)] | None

buffer_kinematics_recording

Buffer for storing the kinematics data during recording.

Type:

list[(float, np.ndarray)] | None

buffer_predictions_recording

Buffer for storing the predictions during recording.

Type:

list[(float, np.ndarray)] | None

buffer_prediction_proba_recording

Buffer for storing the prediction probabilities during recording.

Type:

list[(float, np.ndarray)] | None

start_time

Start time of the recording.

Type:

float | None

device_information

Information about the connected device.

Type:

dict[str, str] | None

model_information

Information about the loaded models.

Type:

dict[str, str] | None

prediction_dir_path

Path for storing the predictions.

Type:

str

model_dir_path

Path for storing the models.

Type:

str

time_since_last_prediction

Time since the last prediction.

Type:

float

model_interface

Interface for the Myogestic models.

Type:

MyoGesticModelInterface | None

online_load_model_push_button

Push button for loading the models.

Type:

QPushButton

online_model_label

Label for displaying the loaded models.

Type:

QLabel

online_commands_group_box

Group box for the online commands.

Type:

QGroupBox

online_record_toggle_push_button

Push button for toggling the recording.

Type:

QPushButton

online_prediction_toggle_push_button

Push button for toggling the prediction.

Type:

QPushButton

conformal_prediction_set_pushbutton

Push button for setting the conformal predictor.

Type:

QPushButton

conformal_prediction_type_combo_box

Combo box for selecting the conformal predictor type.

Type:

QComboBox

conformal_prediction_solving_combo_box

Combo box for selecting the conformal predictor solving method.

Type:

QComboBox

conformal_prediction_alpha_spin_box

Spin box for setting the conformal predictor alpha.

Type:

QDoubleSpinBox

conformal_prediction_kernel_spin_box

Spin box for setting the conformal predictor kernel size.

Type:

QSpinBox

conformal_prediction_group_box

Group box for the conformal predictor.

Type:

QGroupBox

conformal_prediction_label_kernel_size

Label for the conformal predictor kernel size.

Type:

QLabel

conformal_prediction_label_alpha

Label for the conformal predictor alpha.

Type:

QLabel

conformal_prediction_label_solving_method

Label for the conformal predictor solving method

Type:

QLabel