Skip to content

Commit b105962

Browse files
authored
Merge pull request #335 from PyLabRobot/centrifuge_chatter
2 parents 6d3566d + 963268e commit b105962

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
114114
- `{Well,TipSpot}.get_identifier` (https://github.com/PyLabRobot/pylabrobot/pull/327)
115115
- `LiquidHandler{Backend}.{pick_up_resource,move_picked_up_resource,drop_resource}` (https://github.com/PyLabRobot/pylabrobot/pull/328)
116116
- `Access2` loader for vspin (https://github.com/PyLabRobot/pylabrobot/pull/308)
117+
- `CentrifugeChatterboxBackend` and `LoaderChatterboxBackend` (https://github.com/PyLabRobot/pylabrobot/pull/335)
117118

118119
### Deprecated
119120

pylabrobot/centrifuge/chatterbox.py

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
from pylabrobot.centrifuge.backend import CentrifugeBackend, LoaderBackend
2+
3+
4+
class CentrifugeChatterboxBackend(CentrifugeBackend):
5+
async def open_door(self):
6+
print("Opening door")
7+
8+
async def close_door(self):
9+
print("Closing door")
10+
11+
async def lock_door(self):
12+
print("Locking door")
13+
14+
async def unlock_door(self):
15+
print("Unlocking door")
16+
17+
async def go_to_bucket1(self):
18+
print("Going to bucket 1")
19+
20+
async def go_to_bucket2(self):
21+
print("Going to bucket 2")
22+
23+
async def rotate_distance(self, distance):
24+
print(f"Rotating distance: {distance}")
25+
26+
async def lock_bucket(self):
27+
print("Locking bucket")
28+
29+
async def unlock_bucket(self):
30+
print("Unlocking bucket")
31+
32+
async def start_spin_cycle(self, g: float, duration: float, acceleration: float):
33+
print(f"Starting spin cycle with g: {g}, duration: {duration}, acceleration: {acceleration}")
34+
35+
36+
class LoaderChatterboxBackend(LoaderBackend):
37+
async def load(self):
38+
print("Loading")
39+
40+
async def unload(self):
41+
print("Unloading")

0 commit comments

Comments
 (0)