fix(api): use old TC Gen2 labwareOffset values in legacy core #14414
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes issue in RESC-196
Overview
In this PR, we changed how we calculate the final origin of any labware placed on a TC gen2. Previously we assumed that all labware sit 98.26mm above the OT2 slot; we call it the TC labware offset. This offset was correct for the Armadillo plate; while other pcr plates would sit +/-0.1mm differently. In 7.0.1, we updated this labware offset to be the top plane of metal cylinders of the thermocycler (108.96mm), and introduced a
stackingOffsetWithModule
parameter in the labware definitions to inform us of the distance a labware actually rests at from top of those cylinders. For labware that didn’t have these offsets, we added a fallback of using the previous labware offset of 98.26.Issue is, we forgot to add that fallback in v2.13, which is a legacy core based API so now the backend assumes all labware sit at 108.96mm on TC Gen2, ignoring any
stackingOffsetWithModule
because the legacy core has no concept of stacking offsets.I compiled all this, with options for solutions in this spreadsheet and we decided to go with option 1- revert the behavior of API v2.13 to what it was prior to the change in 7.0.1.
Test Plan
Changelog
Review requests
Risk assessment
Medium. This adds/ reverts a change in positioning such that previous LPC offsets should not used or they'll result in pipettes crashing into labware bottom. We should also convey this to users.