Skip to content

Commit

Permalink
fix(api): specify gripper probe (#13657)
Browse files Browse the repository at this point in the history
462049e added the ability to calibrate the 8 channel pipette, but
broke calibration for gripper and possibly 96 channel while doing so
since those devices need to calibrate with the secondary probe by
default.

This fixes that problem by explicitly forwarding the requested probe to
the internals.
  • Loading branch information
sfoster1 authored Sep 26, 2023
1 parent 433c520 commit c9c3d1c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion api/src/opentrons/hardware_control/ot3_calibration.py
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,12 @@ async def calibrate_gripper_jaw(
hcapi.add_gripper_probe(probe)
await hcapi.grip(GRIPPER_GRIP_FORCE)
offset = await _calibrate_mount(
hcapi, OT3Mount.GRIPPER, slot, method, raise_verify_error
hcapi,
OT3Mount.GRIPPER,
slot,
method,
raise_verify_error,
probe=probe.to_type(probe),
)
LOG.info(f"Gripper {probe.name} probe offset: {offset}")
return offset
Expand Down

0 comments on commit c9c3d1c

Please sign in to comment.