@@ -151,8 +151,6 @@ def __init__(
151151class PlateHolder (ResourceHolder ):
152152 """A single site within a plate carrier."""
153153
154- _accepted_child_types = (Plate , PlateAdapter , Lid )
155-
156154 def __init__ (
157155 self ,
158156 name : str ,
@@ -192,11 +190,6 @@ def assign_child_resource(
192190 "If a ResourceStack is assigned to a PlateHolder, the items "
193191 + f"must be Plates, not { type (resource .children [- 1 ])} "
194192 )
195- elif not isinstance (resource , self ._accepted_child_types ):
196- raise TypeError (
197- "PlateHolder can only store Plate, PlateAdapter or ResourceStack "
198- + f"resources, not { type (resource )} "
199- )
200193 if isinstance (resource , Plate ) and resource .plate_type != "skirted" :
201194 raise ValueError ("PlateHolder can only store plates that are skirted" )
202195 return super ().assign_child_resource (resource , location , reassign )
@@ -256,15 +249,6 @@ def serialize(self) -> dict:
256249 "pedestal_size_z" : self .pedestal_size_z ,
257250 }
258251
259- def check_can_drop_resource_here (self , resource : Resource ) -> None :
260- if not isinstance (resource , PlateHolder ._accepted_child_types ):
261- raise TypeError (
262- f"Cannot drop resource { resource .name } onto plate holder { self .name } . "
263- f"Only { self ._accepted_child_types } resources are allowed."
264- )
265-
266- super ().check_can_drop_resource_here (resource )
267-
268252
269253class PlateCarrier (Carrier ):
270254 r"""Base class for plate carriers.
0 commit comments