Skip to content

Commit c1ec49d

Browse files
authored
Merge pull request #119 from OpenTrons/docs-edits
Docs edits
2 parents 8a40915 + 0e7c6a6 commit c1ec49d

File tree

5 files changed

+32
-52
lines changed

5 files changed

+32
-52
lines changed

docs/source/getting_started.rst

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ Now that you've installed Opentrons API on your computer, you have access to a v
3030

3131
from opentrons import robot, instruments, containers
3232
robot.reset()
33+
robot.connect()
3334
i = 0
3435

3536
tiprack = containers.load(
@@ -89,9 +90,9 @@ For each container you want to use on the deck, you need to load it into your fi
8990
9091
**containers.load** (*container, slot, name*)
9192

92-
* **container -** type of container (trough-12-row, etc)
93-
* **slot -** the slot location on the deck (A1-E3)
94-
* **name -** custom name
93+
* **container -** type of container (aka "trough-12row")
94+
* **slot -** the slot location on the deck ("A1" through "E3")
95+
* **name -** custom name, used inside API when saving calibration data
9596

9697
The example below declares 3 different containers and assigns them to the appropriate slots on the deck.
9798

@@ -144,7 +145,7 @@ Pipettes
144145
* **tip_racks -** array (list) of container(s) where you want to pick up tips
145146
* **channels -** number of channels (1 or 8)
146147

147-
This example loads a single channel, 20-200 uL pipette on the b axis that pulls tips from tiprack and deposits them in trash
148+
This example loads a single channel, 20-200 uL pipette on the ``b`` axis that pulls tips from tiprack and deposits them in trash
148149

149150
.. testcode:: main
150151

@@ -340,9 +341,9 @@ Containers are calibrated to the bottom of the well, and each labware definition
340341

341342
.. testcode:: main
342343

343-
p200.dispense(plate['A1'].top())
344-
p200.mix(3, 100, plate['B2'].bottom(5))
345-
p200.dispense(plate['A1'].top(-3))
344+
p200.dispense(plate['A1'].top()) # at the top of well
345+
p200.mix(3, 100, plate['B2'].bottom(5)) # 5mm above bottom of well
346+
p200.dispense(plate['A1'].top(-3)) # 3mm below top of well
346347

347348
Homing
348349
------
@@ -354,13 +355,14 @@ You can instruct the robot to home at any point in the protocol, or just home on
354355
* **axes -** the axes you want to home
355356
* **enqueue -** True or False
356357

357-
When the python file is loaded into the protocol, it runs through all of the commands. When enqueue=False, this will cause the robot to home immediately upon loading the protocol, whereas if enqueue=True, it will run when it is called in the protocol.
358+
When the python file is loaded into the protocol, it runs through all of the commands. When enqueue=False (default), this will cause the robot to home immediately upon loading the protocol, whereas if enqueue=True, it will run when it is called in the protocol.
358359

359360
.. testcode:: main
360361

361-
robot.home(enqueue=True)
362-
robot.home('ab', enqueue=True)
363-
robot.home('xyz', enqueue=True)
362+
robot.home() # causes robot to home immediately
363+
robot.home(enqueue=True) # adds "home" command to protocol queue
364+
robot.home('ab', enqueue=True) # adds "home ab" command to protocol queue
365+
robot.home('xyz', enqueue=True) # adds "home xyz" command to protocol queue
364366

365367
Move To
366368
-------

docs/source/module.rst

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Just like a pipette, you need to set up and name your module.
2020

2121
**instruments.Magbead** (*mofset, name*)
2222

23-
* **mofset -** default to =0
23+
* **mosfet -** integer 0-5 (defaults to 0)
2424
* **name -** the name you want to call your module
2525

2626
.. testsetup:: main
@@ -31,23 +31,20 @@ Just like a pipette, you need to set up and name your module.
3131

3232
.. testcode:: main
3333

34-
mag_deck = instruments.Magbead(
35-
mosfet=0,
36-
name='mag_deck'
37-
)
34+
mag_deck = instruments.Magbead(name='mag_deck')
3835

3936
Activate and Deactivate Magnets
4037
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4138

42-
To activate the magnets, use the following command
39+
To activate the magnets and raise the module's platform, run ``.engage()``:
4340

4441
**module.engage** ()
4542

4643
.. testcode:: main
4744

4845
mag_deck.engage()
4946

50-
To deactive the magnets, use the following command
47+
To deactivate the magnets and lower the module's platform, run ``.disengage()``:
5148

5249
**module.disengage** ()
5350

@@ -58,7 +55,7 @@ To deactive the magnets, use the following command
5855
Chain Other Commands
5956
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6057

61-
Just like aspirate() and dispense() can be chained, you can chain engage() and disengage(), as well as the delay() if you don't want to do anything between engaging and disengaging the magnets.
58+
Just like ``aspirate()`` and ``dispense()`` can be chained, you can chain ``engage()`` and ``disengage()``, as well as the ``delay()`` if you don't want to do anything between engaging and disengaging the magnets.
6259

6360
.. testcode:: main
6461

@@ -68,7 +65,7 @@ Just like aspirate() and dispense() can be chained, you can chain engage() and d
6865

6966
mag_deck.engage().delay(60).disengage()
7067

71-
You can call delay() with a pipette or a mag_deck module.
68+
You can call ``delay()`` with a ``Pipette`` or a ``Magbead`` module.
7269

7370
.. testcode:: main
7471

docs/source/tips_and_tricks.rst

Lines changed: 8 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -7,43 +7,27 @@ The following examples assume the containers and pipettes:
77

88
.. testsetup:: tips_main
99

10-
from opentrons import Robot
10+
from opentrons import robot
1111
from opentrons import containers, instruments
12-
robot = Robot()
13-
robot.reset()
1412
robot.connect('Virtual Smoothie')
1513

16-
tiprack = containers.load('tiprack-200ul', 'A1')
17-
plate = containers.load('96-flat', 'B1')
18-
trough = containers.load('trough-12row', 'C1')
19-
trash = containers.load('point', 'C2')
14+
tiprack = containers.load('tiprack-200ul', 'A1', 'tiprack-for-doctest')
15+
plate = containers.load('96-flat', 'B1', 'plate-for-doctest')
16+
trough = containers.load('trough-12row', 'C1', 'trough-for-doctest')
17+
trash = containers.load('point', 'C2', 'trash-for-doctest')
2018

2119
p200 = instruments.Pipette(axis="b", max_volume=200)
2220

2321
.. testsetup:: tips_demo
2422

25-
from opentrons import Robot
26-
Robot().reset()
27-
28-
.. testcleanup:: tips_main
29-
30-
from opentrons.util import singleton
31-
from opentrons import Robot
32-
del singleton.Singleton._instances[Robot]
33-
34-
.. testcleanup:: tips_demo
35-
36-
from opentrons.util import singleton
37-
from opentrons import Robot
38-
del singleton.Singleton._instances[Robot]
23+
from opentrons import robot
24+
robot.reset()
3925

4026
.. testcode:: tips_demo
4127

42-
from opentrons import Robot
28+
from opentrons import robot
4329
from opentrons import containers, instruments
4430

45-
robot = Robot()
46-
4731
tiprack = containers.load('tiprack-200ul', 'A1')
4832
plate = containers.load('96-flat', 'B1')
4933
trough = containers.load('trough-12row', 'C1')

docs/source/updating_firmware.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ After downloading, unpack the zip file to view its contents.
2020
Open the Smoothie's Drive
2121
---------------------------------
2222

23-
.. image:: img/update-firmware/driveIcon.png
24-
2523
Power on and plug in your Opentrons liquid handler, and make sure you do not have the app open. You will notice the Smoothieboard shows up on the computer as a Mass Storage Device, like an external hard drive or flash drive.
2624

2725
.. image:: img/update-firmware/firmware_files.png

docs/source/well_access.rst

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Accessing Wells
2020
Coordinates
2121
^^^^^^^^^^^
2222

23-
Wells can be called via their string ['A1'], or their well number [0]. In python, number ranges start with 0, and end at **ask katie for better python description**
23+
Wells can be called via their string ['A1'], or their well number [0]. List indices in Python start with 0, so for a 96 well plate, the first well is at index 0 and last is at index 95.
2424

2525
.. code-block:: python
2626
@@ -29,7 +29,7 @@ Wells can be called via their string ['A1'], or their well number [0]. In pytho
2929
plate[94] # G12
3030
plate[95] # H12
3131
32-
You can also split the coordinates for the rows and columns and use either .rows or .cols.
32+
You can also split the coordinates for the rows and columns and use either ``.rows`` or ``.cols``.
3333

3434
.. testsetup:: main
3535

@@ -94,7 +94,7 @@ Similar to .rows, except .cols.
9494
Iterating Wells
9595
-------------------------------
9696

97-
There are many wells to iterate through a plate, well by well, row by row, col by col, or skipping around. We will show you examples of how to do all of these.
97+
There are many ways to iterate through a plate, well by well, row by row, col by col, or skipping around. We will show you examples of how to do all of these.
9898

9999
.. tip::
100100

@@ -144,7 +144,7 @@ Other Examples
144144
Odds & Evens
145145
^^^^^^^^^^^^
146146

147-
In order to access every other row, you can utilize the third parameter in range and add a step count to your loop. A step of 2 skips every other number, giving you all the odds or all the evens (see below) depending on the start of your range.
147+
In order to access every other row, you can utilize the third parameter in ``range()`` and add a step-count to your loop. A step-count of ``2`` will skip every other number, so calling ``range(0, 10, 2)`` will create ``[0, 2, 4, 6, 8]``.
148148

149149
.. testcode:: main
150150

@@ -164,13 +164,12 @@ Chaining
164164
^^^^^^^^
165165

166166
Skipping around multiple chains is easy, once you have the right tools. There are some python functions that are not inherent to the API, but that can be imported to make your life easier. You can import the chain function when you import the opentrons API at the start of your python notebook.
167-
**ask katie for python import explanation**
168167

169168
.. testcode:: main
170169

171170
from itertools import chain
172171

173-
The chain functinos allows you to link two sets of locations together, in this case, two different columns. The loop will iterate through all wells in column A and column E, while skipping columns BCDFGH.
172+
The chain function allows you to link two sets of locations together, in this case, two different columns. The loop will iterate through all wells in column A and column E, while skipping columns BCDFGH.
174173

175174
.. testcode:: main
176175

0 commit comments

Comments
 (0)