def _record_errors(self): TransferLayoutConverter._record_errors(self) if len(self.__missing_tube_barcode) > 0: msg = "The following positions to not have tube barcode: %s." % ( ", ".join(sorted(self.__missing_tube_barcode)) ) self.add_error(msg)
def _get_position_init_values(self, parameter_map, rack_pos): kw = TransferLayoutConverter._get_position_init_values( self, parameter_map, rack_pos) if kw is None: return None tube_barcode = parameter_map[self.PARAMETER_SET.TUBE_BARCODE] if tube_barcode is None or len(tube_barcode) < 2: self.__missing_tube_barcode.append(rack_pos.label) return None kw['tube_barcode'] = tube_barcode return kw
def _get_position_init_values(self, parameter_map, rack_pos): kw = TransferLayoutConverter._get_position_init_values(self, parameter_map, rack_pos) if kw is None: return None tube_barcode = parameter_map[self.PARAMETER_SET.TUBE_BARCODE] if tube_barcode is None or len(tube_barcode) < 2: self.__missing_tube_barcode.append(rack_pos.label) return None kw["tube_barcode"] = tube_barcode return kw
def reset(self): TransferLayoutConverter.reset(self) self.__missing_tube_barcode = []
def __init__(self, rack_layout, parent=None): TransferLayoutConverter.__init__(self, rack_layout, parent=parent) # Intermediate error storage self.__missing_tube_barcode = None
def _record_errors(self): TransferLayoutConverter._record_errors(self) if len(self.__missing_tube_barcode) > 0: msg = 'The following positions to not have tube barcode: %s.' \ % (', '.join(sorted(self.__missing_tube_barcode))) self.add_error(msg)