def run(self): self.reset() self.add_info('Start planned worklist generation ...') self._check_input() if not self.has_errors(): self._set_label() if not self.has_errors(): self._create_planned_liquid_transfers() if not self.has_errors(): transfer_type = self.__get_transfer_type() if not self.has_errors(): pipetting_specs = get_pipetting_specs(self.PIPETTING_SPECS_NAME) planned_worklist = \ PlannedWorklist(self._label, transfer_type, pipetting_specs, planned_liquid_transfers= self._planned_liquid_transfers) self.return_value = planned_worklist self.add_info('Planned worklist generation completed.')
def __init__(self, index, target_rack, pipetting_specs): """ Constructor. :param index: The index of the transfer job within the series. :type index: :class:`int` :param target_rack: The rack taking up the volumes. :type target_rack: :class:`thelma.entities.rack.Rack` :param pipetting_specs: Defines the properties (like the transfer volume range, etc.) :type pipetting_specs: :class:`basestring` (pipetting specs name) or :class:`thelma.entities.liquidtransfer.PipettingSpecs` """ #: The index of the transfer job within the series. self.index = index #: The rack into which the volumes will be dispensed. self.target_rack = target_rack if isinstance(pipetting_specs, basestring): pipetting_specs = get_pipetting_specs(pipetting_specs) #: The :class:`PipettingSpecs` to be used for this transfer. self.pipetting_specs = pipetting_specs