Skip to content

Commit 1c0ae61

Browse files
committed
correct import of robot
1 parent 49d454d commit 1c0ae61

File tree

1 file changed

+8
-24
lines changed

1 file changed

+8
-24
lines changed

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')

0 commit comments

Comments
 (0)