Skip to content

Commit 243c683

Browse files
authored
fix(robot-server): deck cal: clear pipette offset cal when deck cal completes (#7019)
* fix(robot-server): deck cal: clear pipette offset calibrations when exit sessions * clear pip offset right after matrix is saved
1 parent 74d9cb4 commit 243c683

File tree

1 file changed

+6
-1
lines changed
  • robot-server/robot_server/robot/calibration/deck

1 file changed

+6
-1
lines changed

robot-server/robot_server/robot/calibration/deck/user_flow.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
Any, Awaitable, Callable, Dict, List, Optional, Tuple,
66
Union, TYPE_CHECKING)
77

8-
from opentrons.calibration_storage import get
8+
from opentrons.calibration_storage import get, delete
99
from opentrons.calibration_storage.types import TipLengthCalNotFound
1010
from opentrons.calibration_storage import helpers
1111
from opentrons.config import feature_flags as ff
@@ -102,6 +102,8 @@ def __init__(self,
102102
}
103103
self.hardware.set_robot_calibration(
104104
robot_cal.build_temporary_identity_calibration())
105+
self._hw_pipette.update_pipette_offset(
106+
robot_cal.load_pipette_offset(pip_id=None, mount=self._mount))
105107

106108
@property
107109
def deck(self) -> Deck:
@@ -288,6 +290,8 @@ async def save_offset(self):
288290

289291
if self._current_state == State.savingPointThree:
290292
self._save_attitude_matrix()
293+
# clear all pipette offset data
294+
delete.clear_pipette_offset_calibrations()
291295

292296
def _save_attitude_matrix(self):
293297
e = tuplefy_cal_point_dicts(self._expected_points)
@@ -334,6 +338,7 @@ async def exit_session(self):
334338
await self.return_tip()
335339
# reload new deck calibration
336340
self._hardware.reset_robot_calibration()
341+
self._hardware.reset_instrument()
337342
await self._hardware.home()
338343

339344
async def invalidate_last_action(self):

0 commit comments

Comments
 (0)