Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Labware creator adapter fix attempt #17347

Open
wants to merge 3 commits into
base: edge
Choose a base branch
from

Conversation

alexjoel42
Copy link
Contributor

Overview

Addressing a customer reported bug where labware's stacked offsets while loaded onto just a module don't account for the module's height.

Test Plan and Hands on Testing

Make custom labware using the module's hights and then check the offsets

Changelog

One line change

Review requests

I want to verify that this doesn't have any wider scope code risk. I don't understand Labware-Creator very well as an ecosystem yet.

Risk assessment

Medium

…acking offset with module

We had a bug in #17238

BREAKING CHANGE: This will change how the stacking offset is calculated so any quirky customer
workarounds might stop working. Also if the changes needed to be bigger that will also be tricky

GitHub ticket 17238
@alexjoel42 alexjoel42 requested a review from jerader January 24, 2025 23:14
@alexjoel42 alexjoel42 requested a review from a team as a code owner January 24, 2025 23:14
@@ -121,11 +121,15 @@ export function fieldsToLabware(
})
const stackingOffsetWithModule: Record<string, LabwareOffset> = {}
Object.entries(compatibleModules).forEach(([moduleModel, z]) => {
const moduleDefinition = getModuleDef2(moduleModel as ModuleModel)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like you need to import ModuleModel! import type { ModuleModel } from '@opentrons/shared-data'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants