-
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): corrections to docstrings involving TrashBin
s
#14194
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## chore_release-7.1.0 #14194 +/- ##
====================================================
Coverage 70.45% 70.45%
====================================================
Files 2512 2512
Lines 71237 71237
Branches 8982 8982
====================================================
Hits 50189 50189
Misses 18849 18849
Partials 2199 2199
Flags with carried forward coverage won't be shown. Click here to find out more.
|
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, thanks!
I think we can simplify InstrumentContext.trash_container
to take advantage of existing abstractions. Other than that, just some minor suggestions.
"""The trash fixed to slot 12 of an OT-2's deck. | ||
|
||
In API Versions prior to 2.16 it has one well and should be accessed like labware in your protocol. | ||
e.g. ``protocol.fixed_trash['A1']`` | ||
In API version 2.15 and earlier, the fixed trash is a :py:class:`.Labware` object with one well. Access it like labware in your protocol. For example, ``protocol.fixed_trash['A1']``. | ||
|
||
In API Version 2.16 and above it returns a Trash fixture for OT-2 Protocols. | ||
In API version 2.15 only, Flex protocols have a fixed trash in slot A3. | ||
|
||
In API version 2.16 and later, the fixed trash only exists in OT-2 protocols. It is a :py:class:`.TrashBin` object, which doesn't have any wells. Trying to access ``fixed_trash`` in a Flex protocol will raise an error. | ||
|
||
.. versionchanged:: 2.16 | ||
Returns a :py:class:`.TrashBin` object. |
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.
This looks good to me, but:
- See https://github.com/Opentrons/opentrons/pull/14193/files if any of my alternative phrasing over there is helpful.
- I would consider squeezing in a reference to
:ref:`configure-trash-bin`
.
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.
The text here all seems fine to me. No additional comments from this side of the peanut gallery. 👍
Co-authored-by: Max Marrone <[email protected]>
--------- Co-authored-by: Max Marrone <[email protected]>
Overview
Updates the docstrings for
fixed_trash
andtrash_container
to accurately reflect how they work with different robot types and API versions.Test Plan
Check API reference entries.
fixed_trash
trash_container
Changelog
drop_tip()
doesn't go to the "default"trash_container
— it goes to the current value.Review requests
I love it because it's trash?
Risk assessment
v low, docstrings only