Source code for pythonlab.resources.services.thermal_cycler
import typing
import logging
from pythonlab.resource import (
ServiceResource,
LabwareResource
)
[docs]
class ThermalCyclerServiceResource(ServiceResource):
"""
Describes a thermal cycler service.
"""
def __init__(self, proc, name: typing.Optional[str], capacity: int = 1):
super().__init__(
proc=proc,
name=name
)
self._capacity = capacity
[docs]
def run_program(self, labware: LabwareResource, protocol: str, **kwargs):
logging.debug(f"Adding thermal cycling process step.")
if "duration" not in kwargs:
kwargs['duration'] = 60
kwargs.update(dict(fct='run_program', protocol=protocol))
self.proc.add_process_step(
self, [labware], **kwargs
)