Skip to content

Commit

Permalink
labware movement formatting cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
CaseyBatten committed Oct 30, 2024
1 parent 3f870cd commit 10974f8
Showing 1 changed file with 9 additions and 14 deletions.
23 changes: 9 additions & 14 deletions api/src/opentrons/protocol_engine/commands/move_labware.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,21 +175,16 @@ async def execute(self, params: MoveLabwareParams) -> _ExecuteReturn: # noqa: C
if labware_validation.validate_definition_is_lid(
self._state_view.labware.get_definition(params.labwareId)
):
self._state_view.labware.get_labware_gripper_offsets
if (
"lidDisposalOffsets"
in current_labware_definition.gripperOffsets.keys()
):
lid_disposable_offfets = (
current_labware_definition.gripperOffsets.get(
"lidDisposalOffsets"
)
)
if lid_disposable_offfets is not None:
trash_lid_drop_offset = LabwareOffsetVector(
x=current_labware_definition.gripperOffsets[
"lidDisposalOffsets"
].dropOffset.x,
y=current_labware_definition.gripperOffsets[
"lidDisposalOffsets"
].dropOffset.y,
z=current_labware_definition.gripperOffsets[
"lidDisposalOffsets"
].dropOffset.z,
x=lid_disposable_offfets.dropOffset.x,
y=lid_disposable_offfets.dropOffset.y,
z=lid_disposable_offfets.dropOffset.z,
)
else:
raise LabwareOffsetDoesNotExistError(
Expand Down

0 comments on commit 10974f8

Please sign in to comment.