Skip to content

Commit

Permalink
fix(api): do not block refresh positions (#13611)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahiuchingau authored Sep 21, 2023
1 parent 49acdef commit 9d3b69b
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions api/src/opentrons/hardware_control/instruments/ot3/gripper.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,12 @@ def current_jaw_displacement(self) -> float:
@current_jaw_displacement.setter
def current_jaw_displacement(self, mm: float) -> None:
max_mm = self._max_jaw_displacement() + 2.0
assert mm <= max_mm, (
f"jaw displacement {round(mm, 1)} mm exceeds max expected value: "
f"{max_mm} mm"
)
self._current_jaw_displacement = mm
if mm > max_mm:
self._log.warning(
f"jaw displacement {round(mm, 1)} mm exceeds max expected value: "
f"{max_mm} mm, setting value to max value instead."
)
self._current_jaw_displacement = min(mm, max_mm)

@property
def default_grip_force(self) -> float:
Expand Down

0 comments on commit 9d3b69b

Please sign in to comment.