Skip to content

Commit 60f482f

Browse files
committed
rename deprecated {STAR,Vantage}->Backend
1 parent 8781755 commit 60f482f

File tree

9 files changed

+31
-31
lines changed

9 files changed

+31
-31
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ Here's a quick example showing how to move 100uL of liquid from well A1 to A2 us
3131

3232
```python
3333
from pylabrobot.liquid_handling import LiquidHandler
34-
from pylabrobot.liquid_handling.backends import STAR
34+
from pylabrobot.liquid_handling.backends import STARBackend
3535
from pylabrobot.resources import Deck
3636

3737
deck = Deck.load_from_json_file("hamilton-layout.json")
38-
lh = LiquidHandler(backend=STAR(), deck=deck)
38+
lh = LiquidHandler(backend=STARBackend(), deck=deck)
3939
await lh.setup()
4040

4141
await lh.pick_up_tips(lh.deck.get_resource("tip_rack")["A1"])
@@ -69,9 +69,9 @@ We also provide a browser-based Visualizer which can visualize the state of the
6969
Moving a plate to a ClarioStar using a liquid handler, and reading luminescence:
7070

7171
```python
72-
from pylabrobot.plate_reading import PlateReader, ClarioStar
72+
from pylabrobot.plate_reading import PlateReader, CLARIOstarBackend
7373

74-
pr = PlateReader(name="plate reader", backend=ClarioStar(), size_x=1, size_y=1, size_z=1)
74+
pr = PlateReader(name="plate reader", backend=CLARIOstarBackend(), size_x=1, size_y=1, size_z=1)
7575
await pr.setup()
7676

7777
# Use in combination with a liquid handler

docs/user_guide/00_liquid-handling/hamilton-star/96head.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@
2525
},
2626
{
2727
"cell_type": "code",
28-
"execution_count": 1,
28+
"execution_count": null,
2929
"metadata": {},
3030
"outputs": [],
3131
"source": [
32-
"from pylabrobot.liquid_handling import LiquidHandler, STAR\n",
32+
"from pylabrobot.liquid_handling import LiquidHandler, STARBackend\n",
3333
"from pylabrobot.resources import STARLetDeck\n",
3434
"from pylabrobot.resources import (\n",
3535
" TIP_CAR_480_A00,\n",
@@ -38,7 +38,7 @@
3838
" Cor_96_wellplate_360ul_Fb\n",
3939
")\n",
4040
"\n",
41-
"lh = LiquidHandler(backend=STAR(), deck=STARLetDeck())\n",
41+
"lh = LiquidHandler(backend=STARBackend(), deck=STARLetDeck())\n",
4242
"await lh.setup()\n",
4343
"\n",
4444
"# assign a tip rack\n",

docs/user_guide/00_liquid-handling/hamilton-star/foil.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@
2525
},
2626
{
2727
"cell_type": "code",
28-
"execution_count": 2,
28+
"execution_count": null,
2929
"metadata": {},
3030
"outputs": [],
3131
"source": [
32-
"from pylabrobot.liquid_handling import LiquidHandler, STAR\n",
32+
"from pylabrobot.liquid_handling import LiquidHandler, STARBackend\n",
3333
"from pylabrobot.resources import STARLetDeck\n",
3434
"from pylabrobot.resources import (\n",
3535
" TIP_CAR_480_A00,\n",
@@ -38,7 +38,7 @@
3838
" AGenBio_4_wellplate_Vb\n",
3939
")\n",
4040
"\n",
41-
"star = STAR()\n",
41+
"star = STARBackend()\n",
4242
"lh = LiquidHandler(backend=star, deck=STARLetDeck())\n",
4343
"await lh.setup()\n",
4444
"\n",

docs/user_guide/00_liquid-handling/hamilton-star/z-probing.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@
2323
},
2424
{
2525
"cell_type": "code",
26-
"execution_count": 1,
26+
"execution_count": null,
2727
"metadata": {},
2828
"outputs": [],
2929
"source": [
30-
"from pylabrobot.liquid_handling import LiquidHandler, STAR\n",
30+
"from pylabrobot.liquid_handling import LiquidHandler, STARBackend\n",
3131
"from pylabrobot.resources import STARLetDeck\n",
3232
"from pylabrobot.resources import (\n",
3333
" TIP_CAR_480_A00,\n",
@@ -36,7 +36,7 @@
3636
" Cor_96_wellplate_360ul_Fb\n",
3737
")\n",
3838
"\n",
39-
"star = STAR()\n",
39+
"star = STARBackend()\n",
4040
"lh = LiquidHandler(backend=star, deck=STARLetDeck())\n",
4141
"await lh.setup()\n",
4242
"\n",

docs/user_guide/00_liquid-handling/moving-channels-around.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@
3737
"metadata": {},
3838
"outputs": [],
3939
"source": [
40-
"from pylabrobot.liquid_handling import LiquidHandler, STAR\n",
40+
"from pylabrobot.liquid_handling import LiquidHandler, STARBackend\n",
4141
"from pylabrobot.resources import STARDeck, TIP_CAR_480_A00, hamilton_96_tiprack_1000ul_filter\n",
4242
"\n",
43-
"lh = LiquidHandler(backend=STAR(), deck=STARDeck())\n",
43+
"lh = LiquidHandler(backend=STARBackend(), deck=STARDeck())\n",
4444
"await lh.setup()\n",
4545
"\n",
4646
"# assign a tip rack\n",

docs/user_guide/machine-agnostic-features/validation.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,16 @@
2626
},
2727
{
2828
"cell_type": "code",
29-
"execution_count": 1,
29+
"execution_count": null,
3030
"metadata": {},
3131
"outputs": [],
3232
"source": [
3333
"import pylabrobot\n",
3434
"from pylabrobot.liquid_handling import LiquidHandler\n",
35-
"from pylabrobot.liquid_handling.backends import STAR\n",
35+
"from pylabrobot.liquid_handling.backends import STARBackend\n",
3636
"from pylabrobot.resources.hamilton import STARDeck\n",
3737
"\n",
38-
"backend = STAR()\n",
38+
"backend = STARBackend()\n",
3939
"lh = LiquidHandler(backend=backend, deck=STARDeck())"
4040
]
4141
},

docs/user_guide/machine-agnostic-features/writing-robot-agnostic-protocols.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ This document describes best practices for writing methods that are agnostic to
99
It is recommended to keep the layout of the deck separate from the protocol. This allows you to easily change the layout of the deck without having to change the protocol.
1010

1111
```py
12-
from pylabrobot.liquid_handling import LiquidHandler, STAR
12+
from pylabrobot.liquid_handling import LiquidHandler, STARBackend
1313
from pylabrobot.resources import Deck, TipRack, Plate
1414

1515
# Write a method that creates a deck and defines its layout.
@@ -23,7 +23,7 @@ def make_deck() -> Deck:
2323

2424
# Instantiate the liquid handler using a deck and backend.
2525
deck = make_deck()
26-
backend = STAR()
26+
backend = STARBackend()
2727
lh = LiquidHandler(backend=backend, deck=deck)
2828

2929
# Get references to the resources you need. Use type hinting for autocompletion.

pylabrobot/liquid_handling/backends/hamilton/STAR_tests.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@
2929
from pylabrobot.resources.hamilton import STARLetDeck, hamilton_96_tiprack_300uL_filter
3030

3131
from .STAR_backend import (
32-
STAR,
3332
CommandSyntaxError,
3433
HamiltonNoTipError,
3534
HardwareError,
35+
STARBackend,
3636
STARFirmwareError,
3737
UnknownHamiltonError,
3838
parse_star_fw_string,
@@ -44,7 +44,7 @@ class TestSTARResponseParsing(unittest.TestCase):
4444

4545
def setUp(self):
4646
super().setUp()
47-
self.star = STAR()
47+
self.star = STARBackend()
4848

4949
def test_parse_response_params(self):
5050
parsed = parse_star_fw_string("C0QMid1111", "")
@@ -144,7 +144,7 @@ class TestSTARUSBComms(unittest.IsolatedAsyncioTestCase):
144144
"""Test that USB data is parsed correctly."""
145145

146146
async def asyncSetUp(self):
147-
self.star = STAR(read_timeout=2, packet_read_timeout=1)
147+
self.star = STARBackend(read_timeout=2, packet_read_timeout=1)
148148
self.star.set_deck(STARLetDeck())
149149
self.star.io = unittest.mock.AsyncMock()
150150
await super().asyncSetUp()
@@ -165,7 +165,7 @@ async def test_send_command_plaintext_response(self):
165165
await self.star.send_command("C0", command="QM", fmt="id####")
166166

167167

168-
class STARCommandCatcher(STAR):
168+
class STARCommandCatcher(STARBackend):
169169
"""Mock backend for star that catches commands and saves them instead of sending them to the
170170
machine."""
171171

@@ -203,7 +203,7 @@ class TestSTARLiquidHandlerCommands(unittest.IsolatedAsyncioTestCase):
203203
"""Test STAR backend for liquid handling."""
204204

205205
async def asyncSetUp(self):
206-
self.STAR = STAR(read_timeout=1)
206+
self.STAR = STARBackend(read_timeout=1)
207207
self.STAR._write_and_read_command = unittest.mock.AsyncMock()
208208
self.STAR.io = unittest.mock.MagicMock()
209209
self.STAR.io.setup = unittest.mock.AsyncMock()
@@ -902,10 +902,10 @@ async def test_portrait_tip_rack_handling(self):
902902
)
903903

904904
def test_serialize(self):
905-
serialized = LiquidHandler(backend=STAR(), deck=STARLetDeck()).serialize()
905+
serialized = LiquidHandler(backend=STARBackend(), deck=STARLetDeck()).serialize()
906906
deserialized = LiquidHandler.deserialize(serialized)
907907
self.assertEqual(deserialized.__class__.__name__, "LiquidHandler")
908-
self.assertEqual(deserialized.backend.__class__.__name__, "STAR")
908+
self.assertEqual(deserialized.backend.__class__.__name__, "STARBackend")
909909

910910
async def test_move_core(self):
911911
self.plt_car[1].resource.unassign()
@@ -939,7 +939,7 @@ async def test_move_core(self):
939939

940940
class STARIswapMovementTests(unittest.IsolatedAsyncioTestCase):
941941
async def asyncSetUp(self):
942-
self.STAR = STAR()
942+
self.STAR = STARBackend()
943943
self.STAR._write_and_read_command = unittest.mock.AsyncMock()
944944
self.deck = STARLetDeck()
945945
self.lh = LiquidHandler(self.STAR, deck=self.deck)
@@ -1066,7 +1066,7 @@ async def test_move_lid_across_rotated_resources(self):
10661066

10671067
class STARFoilTests(unittest.IsolatedAsyncioTestCase):
10681068
async def asyncSetUp(self):
1069-
self.star = STAR()
1069+
self.star = STARBackend()
10701070
self.star._write_and_read_command = unittest.mock.AsyncMock()
10711071
self.deck = STARLetDeck()
10721072
self.lh = LiquidHandler(backend=self.star, deck=self.deck)

pylabrobot/liquid_handling/backends/hamilton/vantage_tests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
from pylabrobot.resources.hamilton import VantageDeck
1616

1717
from .vantage_backend import (
18-
Vantage,
18+
VantageBackend,
1919
VantageFirmwareError,
2020
parse_vantage_fw_string,
2121
vantage_response_string_to_error,
@@ -203,7 +203,7 @@ def test_parse_error_response(self):
203203
)
204204

205205

206-
class VantageCommandCatcher(Vantage):
206+
class VantageCommandCatcher(VantageBackend):
207207
"""Mock backend for Vantage that catches commands and saves them instead of sending them to the
208208
machine."""
209209

0 commit comments

Comments
 (0)