Skip to content

Commit

Permalink
remove _update_tip_state from public api and instance check for only …
Browse files Browse the repository at this point in the history
…the simulator
  • Loading branch information
ryanthecoder committed Mar 13, 2024
1 parent 3e42615 commit 42060a4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 0 additions & 3 deletions api/src/opentrons/hardware_control/backends/flex_protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,3 @@ async def set_hepa_uv_state(self, light_on: bool, uv_duration_s: int) -> bool:

async def get_hepa_uv_state(self) -> Optional[HepaUVState]:
...

def _update_tip_state(self, mount: OT3Mount, status: bool) -> None:
...
6 changes: 4 additions & 2 deletions api/src/opentrons/hardware_control/ot3api.py
Original file line number Diff line number Diff line change
Expand Up @@ -2115,7 +2115,8 @@ async def pick_up_tip(
def add_tip_to_instr() -> None:
instrument.add_tip(tip_length=tip_length)
instrument.set_current_volume(0)
self._backend._update_tip_state(realmount, True)
if isinstance(self._backend, OT3Simulator):
self._backend._update_tip_state(realmount, True)

await self._move_to_plunger_bottom(realmount, rate=1.0)
if (
Expand Down Expand Up @@ -2217,7 +2218,8 @@ def _remove_tips() -> None:

_remove_tips()
# call this in case we're simulating
self._backend._update_tip_state(realmount, False)
if isinstance(self._backend, OT3Simulator):
self._backend._update_tip_state(realmount, False)

async def clean_up(self) -> None:
"""Get the API ready to stop cleanly."""
Expand Down

0 comments on commit 42060a4

Please sign in to comment.