pylabrobot.heating_shaking.heater_shaker.HeaterShaker.register_will_assign_resource_callback#

HeaterShaker.register_will_assign_resource_callback(callback: Callable[[Resource], None])#

Add a callback that will be called before a resource is assigned to this resource. These callbacks can raise errors in case the proposed assignment is invalid.

Parameters:

callback (Callable[[Resource], None])