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

feat(protocol-designer): add off-deck variable for python #17629

Merged
merged 3 commits into from
Mar 3, 2025

Conversation

jerader
Copy link
Collaborator

@jerader jerader commented Mar 3, 2025

Overview

when calling offDeck location, it should use this varible OFF_DECK. This will be used in move_labware in addition to load_labware

see reference in the api doc here: https://docs.opentrons.com/v2/new_protocol_api.html?highlight=use_gripper#opentrons.protocol_api.OFF_DECK

Test Plan and Hands on Testing

Review the code, smoke test uploading a labware loaded off-deck to the app

Changelog

  • add OFF_DECK variable and plug in

Risk assessment

low, behind ff

@jerader jerader requested a review from a team as a code owner March 3, 2025 15:06
@jerader jerader requested a review from ddcc4 March 3, 2025 15:06
Copy link

codecov bot commented Mar 3, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 25.68%. Comparing base (7d35e6f) to head (0902d82).
Report is 13 commits behind head on edge.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             edge   #17629   +/-   ##
=======================================
  Coverage   25.68%   25.68%           
=======================================
  Files        2850     2850           
  Lines      219210   219267   +57     
  Branches    17955    17960    +5     
=======================================
+ Hits        56300    56316   +16     
- Misses     162895   162936   +41     
  Partials       15       15           
Flag Coverage Δ
protocol-designer 18.94% <100.00%> (+<0.01%) ⬆️
step-generation 4.38% <6.66%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
...col-designer/src/file-data/selectors/pythonFile.ts 100.00% <100.00%> (ø)
step-generation/src/utils/pythonFormat.ts 98.83% <100.00%> (+0.01%) ⬆️

... and 3 files with indirect coverage changes

@@ -8,6 +8,9 @@ import type { WellLocation } from '@opentrons/shared-data/command/types/support'
*/
export const PROTOCOL_CONTEXT_NAME = 'protocol'

/** The variable name for defining a labware that is off-deck or being moved to off-deck */
export const OFF_DECK = 'OFF_DECK'
Copy link
Contributor

Choose a reason for hiding this comment

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

Hm, does this work? You might have to say protocol_api.OFF_DECK.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

oh haha you're right. will fix

@jerader jerader requested a review from ddcc4 March 3, 2025 16:26
@jerader jerader merged commit b24ac84 into edge Mar 3, 2025
18 checks passed
@jerader jerader deleted the pd_off-deck-variable branch March 3, 2025 16:43
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