From aa662b8e2f3718e8f3801fdaa5978895e2d86dc8 Mon Sep 17 00:00:00 2001 From: Max Marrone Date: Wed, 28 Feb 2024 14:05:41 -0500 Subject: [PATCH] Deprecate instrument offsets in `GET /calibration/status`. --- .../service/legacy/models/deck_calibration.py | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/robot-server/robot_server/service/legacy/models/deck_calibration.py b/robot-server/robot_server/service/legacy/models/deck_calibration.py index 401589c82a2..f3a186b22c8 100644 --- a/robot-server/robot_server/service/legacy/models/deck_calibration.py +++ b/robot-server/robot_server/service/legacy/models/deck_calibration.py @@ -29,8 +29,22 @@ class InstrumentOffset(BaseModel): - single: Offset - multi: Offset + single: Offset = Field( + ..., + deprecated=True, + description=( + "This will always be `[0, 0, 0]`." + " Use the `GET /calibration/pipette_offset` endpoint instead." + ), + ) + multi: Offset = Field( + ..., + deprecated=True, + description=( + "This will always be `[0, 0, 0]`." + " Use the `GET /calibration/pipette_offset` endpoint instead." + ), + ) class InstrumentCalibrationStatus(BaseModel):