Skip to content

Commit febfb98

Browse files
authored
PlateHolder only takes skirted plates (#330)
1 parent 2ac1c0a commit febfb98

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pylabrobot/resources/carrier.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,8 @@ def assign_child_resource(
191191
"PlateHolder can only store Plate, PlateAdapter or ResourceStack "
192192
+ f"resources, not {type(resource)}"
193193
)
194+
if isinstance(resource, Plate) and resource.plate_type != "skirted":
195+
raise ValueError("PlateHolder can only store plates that are skirted")
194196
return super().assign_child_resource(resource, location, reassign)
195197

196198
def _get_sinking_depth(self, resource: Resource) -> Coordinate:

0 commit comments

Comments
 (0)