API referenceVetraGlove ProPython

Calibration tasks and results

Data models

Current version · 2.0.0

The Calibration types describe the computation progress per target and provide a snapshot of the entire Session and the final result.

CalibrationJobFailure

CalibrationJobFailure appears as CalibrationJobProgress.failure, using a stable code and a readable message to describe the calibration failure reason of a certain target.

Fields

FieldTypeNullableDescription
codestrNoStable failure code
messagestrNoFailure description for display or logging

CalibrationJobProgress

CalibrationJobProgress appears as an element of CalibrationProgress.job and CalibrationSessionSnapshot.jobs, used to view the calibration state and failure information of a single target.

Fields

FieldTypeNullableDescription
target_idstrNoTarget identifier
stateCalibrationJobStateNoThe calibration state of the current target
failureCalibrationJobFailure | NoneYesFailure information of the current target

CalibrationProgress

CalibrationProgress is published by device.calibration_progress() and is used by the external interaction interface to continuously display the computation state of one target in the current Calibration Session.

Fields

FieldTypeNullableDescription
session_idstrNoCalibration Session identifier
source_idstrNoThe source ID used for calibration
jobCalibrationJobProgressNoCalibration progress of the current target

CalibrationSessionSnapshot

CalibrationSessionSnapshot is returned by CalibrationSession.snapshot() and is used to view the current state of the entire Session and all of its targets at once.

Fields

FieldTypeNullableDescription
stateCalibrationSessionStateNoSession state
jobstuple[CalibrationJobProgress, ...]NoTask states arranged in the order of targets

CalibrationResult

CalibrationResult is a single target result in the calibration result collection, used to record the record ID, source, target and creation time of a saved calibration. CalibrationSession.result() returns tuple[CalibrationResult, ...] | None, and wait() returns tuple[CalibrationResult, ...].

Fields

FieldTypeNullableDescription
record_idstrNoThe calibration record identifier after saving
source_idstrNoThe source ID used for calibration
target_idstrNoThe target ID corresponding to the calibration
created_atfloatNoCalibration result creation time in milliseconds; new results use the current Glove time reference

The values of both CalibrationSessionState and CalibrationJobState are RUNNING, COMPLETED, FAILED, CANCELLED, among which CalibrationJobState also includes PENDING, which is waiting to execute.