API referenceVetraGlove ProPython

Calibration sessions

Capture & calibration

Current version · 2.0.0

Returned by device.start_calibration() to control calibration from a completed capture. Results follow the supplied target order.

CalibrationSession.snapshot()

Read a snapshot of the current session state.

Type

CalibrationSession.snapshot() -> CalibrationSessionSnapshot

Details

  • The session must remain open.

See also

CalibrationSession.result()

Query calibration results without waiting for completion.

Type

CalibrationSession.result() -> tuple[CalibrationResult, ...] | None

Returns

tuple[CalibrationResult, ...] | None. See CalibrationResult.

Details

  • The session must remain open.
  • Returns an empty value before completion; use wait() to await the results.

Example

calibration is the open session returned by start_calibration(). An unfinished session returns no result; querying it does not replace SDK scheduling.

results = calibration.result()
if results is not None:
    for result in results:
        print(result.target_id, result.record_id)

Related complete Capture workflow: host_capture_calibration.py.

See also

CalibrationSession.wait()

Wait for calibration and return the results for all targets.

Type

CalibrationSession.wait() -> tuple[CalibrationResult, ...]

Returns

tuple[CalibrationResult, ...]. See CalibrationResult.

Details

  • The session must remain open.
  • Waiting can report workflow failures, cancellation, or closure errors.

Example

calibration comes from start_calibration() and the SDK is advancing in background mode. wait() blocks this thread. With a manual update loop, poll snapshots and result() instead, as shown in the complete example.

try:
    results = calibration.wait()
    for result in results:
        print(result.target_id, result.record_id)
finally:
    calibration.close()

Related complete Capture workflow: host_capture_calibration.py.

See also

CalibrationSession.cancel()

Cancel this calibration session.

Type

CalibrationSession.cancel() -> None

Returns

None.

Details

  • The session must remain open.

Cancelling an unfinished session discards this attempt’s new calibration results while preserving the previous successful compatible calibration and completed capture data. Later stop operations do not revoke a completed calibration.

See also

CalibrationSession.close()

Close the current scope and release its resources.

Type

CalibrationSession.close() -> None

Returns

None.

Details

  • Release the session handle; a closed session cannot be queried or controlled.

See also