-
Notifications
You must be signed in to change notification settings - Fork 178
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
docs(api): CSV runtime parameters #15910
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All the CSV code related samples and doc strings look good, a couple of minor nitpicks/notes but otherwise 👍
api/src/opentrons/protocols/parameters/csv_parameter_interface.py
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the opportunity to review. I have to cut this short because of an upcoming appointment. Left some suggestions for consideration. Glad to look at it more later as needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with 2 simple comments for consideration.
|
||
Remember that CSV parameters don't have default values. Accessing CSV data in any of the above ways will prevent protocol analysis from completing until you select a CSV file and confirm all runtime parameter values during run setup. | ||
|
||
You can use a try–except block to work around this and provide the data needed for protocol analysis. First, add ``from opentrons.protocol_api import RuntimeParameterRequiredError`` at the top of your protocol. Then catch the error like this:: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should "try-except" have code
formatting?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it could, but it wouldn't include the dash, so it would look like try
–except
which i think is kinda weird.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just the comment about the link to file object page.
Rest all looks great!
@ecormany , https://github.com/Opentrons/opentrons/blame/502bbc6d044ecc8821767d2330977ed8717eebfc/api/docs/v2/parameters/use_case_cherrypicking.rst#L122-L128 |
# Overview Thanks to @alexjoel42 for [noticing this syntax error](#15910 (comment)) in the cherrypicking use case. I think I tried to shift loading the trash bin lower in the protocol and left it one line short of where it needed to go. ## Test Plan and Hands on Testing I simulated the whole code block, no modifications except indentation, promise. ## Changelog 🆙 ## Risk assessment none
Overview
Documentation for defining and using CSV runtime parameters.
Test Plan and Hands on Testing
Changelog
CSVParameter
class to API Reference, with newly edited docstringsReview requests
Risk assessment
nil, docs