Skip to content

Commit

Permalink
fix(api): use adapter labwareId when checking adapter quirk (#14191)
Browse files Browse the repository at this point in the history
  • Loading branch information
sanni-t authored Dec 13, 2023
1 parent 59c1042 commit 4c76d5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ def check_safe_for_tip_pickup_and_return(
tiprack_parent = engine_state.labware.get_location(labware_id)
if isinstance(tiprack_parent, OnLabwareLocation): # tiprack is on an adapter
is_96_ch_tiprack_adapter = engine_state.labware.get_has_quirk(
labware_id=labware_id, quirk="tiprackAdapterFor96Channel"
labware_id=tiprack_parent.labwareId, quirk="tiprackAdapterFor96Channel"
)
tiprack_height = engine_state.labware.get_dimensions(labware_id).z
adapter_height = engine_state.labware.get_dimensions(tiprack_parent.labwareId).z
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ def test_valid_96_pipette_movement_for_tiprack_and_adapter(
)
decoy.when(
mock_state_view.labware.get_has_quirk(
labware_id="labware-id", quirk="tiprackAdapterFor96Channel"
labware_id="adapter-id", quirk="tiprackAdapterFor96Channel"
)
).then_return(is_on_flex_adapter)

Expand Down

0 comments on commit 4c76d5f

Please sign in to comment.