-
Notifications
You must be signed in to change notification settings - Fork 180
docs(api): lids updates in 8.4 #17914
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
Changes from all commits
fb8a39f
a8105b2
04199aa
26144c4
e434647
16d91d7
72e8c2c
ae3b9ae
013492c
2a862f6
fec98f0
2dea9f9
2ab75dc
058f6c9
5626e29
b1462fe
ca4b0e8
253a5d1
41bf7e5
de110bb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,7 +48,7 @@ Throughout this section, we'll use the labware listed in the following table. | |
- Labware name | ||
- API load name | ||
* - Well plate | ||
- `Corning 96 Well Plate 360 µL Flat <https://labware.opentrons.com/corning_96_wellplate_360ul_flat/>`_ | ||
- `Opentrons Tough 96 Well Plate 200 µL PCR Full Skirt <https://labware.opentrons.com/opentrons_96_wellplate_200ul_pcr_full_skirt/>`_ | ||
- ``corning_96_wellplate_360ul_flat`` | ||
* - Flex tip rack | ||
- `Opentrons Flex 96 Tips 200 µL <https://shop.opentrons.com/opentrons-flex-tips-200-l/>`_ | ||
|
@@ -63,13 +63,13 @@ Similar to the code sample in :ref:`overview-section-v2`, here's how you use the | |
|
||
#Flex | ||
tiprack = protocol.load_labware("opentrons_flex_96_tiprack_200ul", "D1") | ||
plate = protocol.load_labware("corning_96_wellplate_360ul_flat", "D2") | ||
plate = protocol.load_labware("opentrons_96_wellplate_200ul_pcr_full_skirt", "D2") | ||
|
||
.. code-block:: python | ||
|
||
#OT-2 | ||
tiprack = protocol.load_labware("opentrons_96_tiprack_300ul", "1") | ||
plate = protocol.load_labware("corning_96_wellplate_360ul_flat", "2") | ||
plate = protocol.load_labware("opentrons_96_wellplate_200ul_pcr_full_skirt", "2") | ||
|
||
.. versionadded:: 2.0 | ||
|
||
|
@@ -82,10 +82,47 @@ When the ``load_labware`` method loads labware into your protocol, it returns a | |
The ``load_labware`` method includes an optional ``label`` argument. You can use it to identify labware with a descriptive name. If used, the label value is displayed in the Opentrons App. For example:: | ||
|
||
tiprack = protocol.load_labware( | ||
load_name="corning_96_wellplate_360ul_flat", | ||
load_name="opentrons_flex_96_tiprack_200ul", | ||
location="D1", | ||
label="any-name-you-want") | ||
|
||
|
||
.. _loading-lids: | ||
|
||
Loading Lids | ||
============ | ||
|
||
You can load lids on compatible plates or tip racks. Use the optional ``lid`` parameter of ``load_labware`` to add an Opentrons Tough Auto-Sealing Lid to a PCR plate, or load a new tip rack's lid in your protocol. | ||
|
||
.. code-block:: python | ||
|
||
plate = protocol.load_labware( | ||
load_name="opentrons_96_wellplate_200ul_pcr_full_skirt", | ||
location="D2", | ||
lid="opentrons_tough_pcr_auto_sealing_lid") | ||
|
||
|
||
.. code-block:: python | ||
|
||
tiprack = protocol.load_labware( | ||
load_name="opentrons_flex_96_tiprack_200ul", | ||
location="D1", | ||
lid="opentrons_flex_tiprack_lid") | ||
|
||
|
||
You might need multiple lids during your protocol. Use ``load_lid_stack`` to stack up to five Opentrons Tough Auto-Sealing Lids on a deck slot, riser, or compatible adapter. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @CaseyBatten is there a maximum of 5? I can't find where I read this originally. If true, should also maybe add to API reference. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Its a maximum of 5 based on the |
||
|
||
.. code-block:: python | ||
|
||
def load_lid_stack( | ||
load_name="opentrons_tough_pcr_auto_sealing_lid", | ||
location="B2", | ||
quantity="4") | ||
|
||
Tip rack lids can't be stacked or placed on the deck. | ||
|
||
.. versionadded:: 2.23 | ||
|
||
.. _labware-on-adapters: | ||
|
||
Loading Labware on Adapters | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -451,14 +451,14 @@ def load_labware( | |
choose the adapter's version automatically. | ||
|
||
.. versionadded:: 2.15 | ||
:param lid: A lid to load on the top of the main labware. Accepts the same | ||
values as the ``load_name`` parameter of :py:meth:`.load_lid_stack`. The | ||
lid will use the same namespace as the labware, and the API will | ||
choose the adapter's version automatically. | ||
|
||
.. versionadded:: 2.23 | ||
""" | ||
# TODO: re-include in docstring when 2.23 is ready | ||
# :param lid: A lid to load the on top of the main labware. Accepts the same | ||
# values as the ``load_name`` parameter of :py:meth:`.load_lid_stack`. The | ||
# lid will use the same namespace as the labware, and the API will | ||
# choose the lid's version automatically. | ||
# | ||
# .. versionadded:: 2.23 | ||
|
||
if isinstance(location, OffDeckType) and self._api_version < APIVersion(2, 15): | ||
raise APIVersionError( | ||
api_element="Loading a labware off-deck", | ||
|
@@ -1391,13 +1391,13 @@ def load_lid_stack( | |
version: Optional[int] = None, | ||
) -> Labware: | ||
""" | ||
Load a stack of Lids onto a valid Deck Location or Adapter. | ||
Load a stack of Opentrons Tough Auto-Sealing Lids onto a valid deck location or adapter. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Load lid stack can in theory be used by any stackable lids (of which only the auto-sealing lids apply), so we might want to use more general terminology. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I like limiting it to what's possible now — we can always update when we add more labware and this becomes a more broadly applicable feature. |
||
|
||
:param str load_name: A string to use for looking up a lid definition. | ||
You can find the ``load_name`` for any standard lid on the Opentrons | ||
You can find the ``load_name`` for any compatible lid on the Opentrons | ||
`Labware Library <https://labware.opentrons.com>`_. | ||
:param location: Either a :ref:`deck slot <deck-slots>`, | ||
like ``1``, ``"1"``, or ``"D1"``, or the a valid Opentrons Adapter. | ||
like ``1``, ``"1"``, or ``"D1"``, or a valid Opentrons Adapter. | ||
:param int quantity: The quantity of lids to be loaded in the stack. | ||
:param adapter: An adapter to load the lid stack on top of. Accepts the same | ||
values as the ``load_name`` parameter of :py:meth:`.load_adapter`. The | ||
|
@@ -1418,9 +1418,10 @@ def load_lid_stack( | |
leave this unspecified to let ``load_lid_stack()`` choose a version | ||
automatically. | ||
|
||
:return: The initialized and loaded labware object representing the Lid Stack. | ||
:return: The initialized and loaded labware object representing the lid stack. | ||
|
||
.. versionadded:: 2.23 | ||
|
||
:meta private: | ||
""" | ||
if self._api_version < validation.LID_STACK_VERSION_GATE: | ||
raise APIVersionError( | ||
|
@@ -1479,9 +1480,9 @@ def move_lid( | |
pick_up_offset: Optional[Mapping[str, float]] = None, | ||
drop_offset: Optional[Mapping[str, float]] = None, | ||
) -> Labware | None: | ||
"""Move a lid from a valid source to a new location. Can return a Lid Stack if one is created. | ||
"""Move a compatible lid from a valid source to a new location. Can return a lid stack if one is created. | ||
|
||
:param source_location: Where to take the lid from. This is either: | ||
:param source_location: The lid's starting location. This is either: | ||
|
||
* A deck slot like ``1``, ``"1"``, or ``"D1"``. See :ref:`deck-slots`. | ||
* A labware or adapter that's already been loaded on the deck | ||
|
@@ -1498,7 +1499,7 @@ def move_lid( | |
with :py:meth:`load_labware` or :py:meth:`load_adapter`. | ||
* The special constant :py:obj:`OFF_DECK`. | ||
|
||
:param use_gripper: Whether to use the Flex Gripper for this movement. | ||
:param use_gripper: Whether to use the Flex Gripper to move the lid. | ||
|
||
* If ``True``, use the gripper to perform an automatic | ||
movement. This will raise an error in an OT-2 protocol. | ||
|
@@ -1515,7 +1516,8 @@ def move_lid( | |
labware's current and new locations are accessible, i.e., open the Thermocycler lid | ||
or open the Heater-Shaker's labware latch. | ||
|
||
:meta private: | ||
.. versionadded:: 2.23 | ||
|
||
""" | ||
source: Union[LabwareCore, DeckSlotName, StagingSlotName] | ||
if isinstance(source_location, Labware): | ||
|
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.
@CaseyBatten do we not specify the load name for the lid being moved?