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): avoid use of labware "format" #4070

Merged
merged 6 commits into from
Sep 18, 2019

Conversation

IanLondon
Copy link
Contributor

@IanLondon IanLondon commented Sep 17, 2019

overview

Closes #3894 - infer multichannel compatibility from geometry instead of using format

changelog

  • Move "well set" utils out of PD and into shared-data
  • Don't use format of labware def to determine multi-channel compatibility, use geometry instead

review requests

Make sure multi-channel & single-channel well selection still works, tube racks for example should not be compatible with multi-channel, 384 plates & reservoirs should work.

Note that the unpolished behavior PD has for handling multi-channel-incompatible labware is out of the scope of this PR. It will still allow you select wells, but will give you the blocking error: Selected (aspirate/dispense) labware is incompatible with pipette.

@IanLondon IanLondon requested a review from a team September 17, 2019 17:51
@IanLondon IanLondon added protocol designer Affects the `protocol-designer` project ready for review labels Sep 17, 2019
@codecov
Copy link

codecov bot commented Sep 17, 2019

Codecov Report

Merging #4070 into edge will increase coverage by 0.69%.
The diff coverage is 84.37%.

Impacted file tree graph

@@            Coverage Diff            @@
##            edge    #4070      +/-   ##
=========================================
+ Coverage   57.2%   57.89%   +0.69%     
=========================================
  Files        851      850       -1     
  Lines      23975    24688     +713     
=========================================
+ Hits       13714    14293     +579     
- Misses     10261    10395     +134
Impacted Files Coverage Δ
protocol-designer/src/labware-defs/actions.js 19% <ø> (+1.14%) ⬆️
...signer/src/components/labware/SelectableLabware.js 0% <ø> (ø) ⬆️
...ol-designer/src/top-selectors/substep-highlight.js 0% <ø> (ø) ⬆️
...r/src/steplist/formLevel/handleFormChange/utils.js 94.59% <ø> (ø) ⬆️
shared-data/js/helpers/index.js 81.25% <ø> (-0.75%) ⬇️
protocol-designer/src/steplist/formLevel/errors.js 21.87% <ø> (ø) ⬆️
...l-designer/src/top-selectors/tip-contents/index.js 0% <0%> (ø) ⬆️
protocol-designer/src/ui/labware/selectors.js 33.33% <0%> (+6.06%) ⬆️
protocol-designer/src/utils/index.js 30% <100%> (+3.68%) ⬆️
shared-data/js/helpers/wellSets.js 100% <100%> (ø)
... and 10 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c377d6a...ea4b529. Read the comment docs.

Copy link
Contributor

@Kadee80 Kadee80 left a comment

Choose a reason for hiding this comment

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

💪

Copy link
Contributor

@b-cooper b-cooper left a comment

Choose a reason for hiding this comment

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

Looks great, also 👌 to moving well sets to shared-data

@@ -0,0 +1,101 @@
// @flow
// A "well set" is array of wells corresponding to each tip of an 8 channel pipette.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
// A "well set" is array of wells corresponding to each tip of an 8 channel pipette.
// A "well set" is an array of wells corresponding to each tip of an 8 channel pipette.

@IanLondon IanLondon merged commit f8603a6 into edge Sep 18, 2019
@IanLondon IanLondon deleted the pd_ignore-format branch September 18, 2019 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
protocol designer Affects the `protocol-designer` project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Labware v2: deprecate all uses of 'format'
3 participants