Skip to content

Commit b1a3876

Browse files
committed
ugh
1 parent 79d76ba commit b1a3876

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

pylabrobot/centrifuge/centrifuge.py

+1-6
Original file line numberDiff line numberDiff line change
@@ -145,12 +145,7 @@ async def unload(self) -> None: # DOOR arg?
145145

146146
await self.backend.unload()
147147

148-
print("assigning to self:", self.centrifuge.at_bucket.resource)
149148
self.assign_child_resource(self.centrifuge.at_bucket.resource)
150-
print("assigned to self:", self.resource)
151-
print("paren :", self.resource.parent)
152-
print(" . :", self.centrifuge.at_bucket)
153-
print(" . :", self.centrifuge.at_bucket.resource)
154149

155150
def serialize(self) -> dict:
156151
return {
@@ -164,7 +159,7 @@ def serialize(self) -> dict:
164159
def deserialize(cls, data: dict, allow_marshall: bool = False):
165160
data_copy = data.copy() # copy data because we will be modifying it
166161
centrifuge_data = data_copy.pop("centrifuge")
167-
centrifuge = Centrifuge.deserialize(centrifuge_data, allow_marshall=allow_marshall)
162+
centrifuge = Centrifuge.deserialize(centrifuge_data)
168163
return cls(
169164
centrifuge=centrifuge,
170165
**data_copy,

pylabrobot/centrifuge/centrifuge_tests.py

+3
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ async def test_load(self):
4545
self.loader.assign_child_resource(self.plate)
4646
await self.loader.load()
4747
self.mock_loader_backend.load.assert_awaited_once()
48+
assert self.centrifuge.at_bucket is not None
4849
self.assertEqual(self.centrifuge.at_bucket.children[0], self.plate)
4950
self.assertEqual(self.loader.children, [])
5051

@@ -64,6 +65,7 @@ async def test_load_no_plate(self):
6465
async def test_load_bucket_has_plate(self):
6566
await self.centrifuge.go_to_bucket1()
6667
await self.centrifuge.open_door()
68+
assert self.centrifuge.at_bucket is not None
6769
self.centrifuge.at_bucket.assign_child_resource(self.plate)
6870
another_plate = Cor_96_wellplate_360ul_Fb(name="another_plate")
6971
self.loader.assign_child_resource(another_plate)
@@ -81,6 +83,7 @@ async def test_load_not_at_bucket(self):
8183
async def test_unload(self):
8284
await self.centrifuge.go_to_bucket1()
8385
await self.centrifuge.open_door()
86+
assert self.centrifuge.at_bucket is not None
8487
self.centrifuge.at_bucket.assign_child_resource(self.plate)
8588
await self.loader.unload()
8689
self.mock_loader_backend.unload.assert_awaited_once()

0 commit comments

Comments
 (0)