|
5 | 5 | Any, Awaitable, Callable, Dict, List, Optional, Tuple,
|
6 | 6 | Union, TYPE_CHECKING)
|
7 | 7 |
|
8 |
| -from opentrons.calibration_storage import get |
| 8 | +from opentrons.calibration_storage import get, delete |
9 | 9 | from opentrons.calibration_storage.types import TipLengthCalNotFound
|
10 | 10 | from opentrons.calibration_storage import helpers
|
11 | 11 | from opentrons.config import feature_flags as ff
|
@@ -102,6 +102,8 @@ def __init__(self,
|
102 | 102 | }
|
103 | 103 | self.hardware.set_robot_calibration(
|
104 | 104 | 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)) |
105 | 107 |
|
106 | 108 | @property
|
107 | 109 | def deck(self) -> Deck:
|
@@ -288,6 +290,8 @@ async def save_offset(self):
|
288 | 290 |
|
289 | 291 | if self._current_state == State.savingPointThree:
|
290 | 292 | self._save_attitude_matrix()
|
| 293 | + # clear all pipette offset data |
| 294 | + delete.clear_pipette_offset_calibrations() |
291 | 295 |
|
292 | 296 | def _save_attitude_matrix(self):
|
293 | 297 | e = tuplefy_cal_point_dicts(self._expected_points)
|
@@ -334,6 +338,7 @@ async def exit_session(self):
|
334 | 338 | await self.return_tip()
|
335 | 339 | # reload new deck calibration
|
336 | 340 | self._hardware.reset_robot_calibration()
|
| 341 | + self._hardware.reset_instrument() |
337 | 342 | await self._hardware.home()
|
338 | 343 |
|
339 | 344 | async def invalidate_last_action(self):
|
|
0 commit comments