示例#1
0
文件: base.py 项目: helixyte/TheLMA
 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)
示例#2
0
文件: base.py 项目: papagr/TheLMA
    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
示例#3
0
文件: base.py 项目: helixyte/TheLMA
    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
示例#4
0
文件: base.py 项目: helixyte/TheLMA
 def reset(self):
     TransferLayoutConverter.reset(self)
     self.__missing_tube_barcode = []
示例#5
0
文件: base.py 项目: helixyte/TheLMA
 def __init__(self, rack_layout, parent=None):
     TransferLayoutConverter.__init__(self, rack_layout, parent=parent)
     # Intermediate error storage
     self.__missing_tube_barcode = None
示例#6
0
文件: base.py 项目: papagr/TheLMA
 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)
示例#7
0
文件: base.py 项目: papagr/TheLMA
 def reset(self):
     TransferLayoutConverter.reset(self)
     self.__missing_tube_barcode = []
示例#8
0
文件: base.py 项目: papagr/TheLMA
 def __init__(self, rack_layout, parent=None):
     TransferLayoutConverter.__init__(self, rack_layout, parent=parent)
     # Intermediate error storage
     self.__missing_tube_barcode = None