예제 #1
0
파일: base.py 프로젝트: papagr/TheLMA
    def __init__(self, shape):
        """
        Constructor.

        :param shape: The rack shape.
        :type shape: :class:`thelma.entities.rack.RackShape`
        """
        StockSampleCreationLayout.__init__(self, shape)

        #: Allows validation of new position (is only set, if the layout is
        #: initialised via :func:`from_base_layout`.
        self.base_layout_positions = None
예제 #2
0
파일: base.py 프로젝트: helixyte/TheLMA
    def __init__(self, shape):
        """
        Constructor.

        :param shape: The rack shape.
        :type shape: :class:`thelma.entities.rack.RackShape`
        """
        StockSampleCreationLayout.__init__(self, shape)

        #: Allows validation of new position (is only set, if the layout is
        #: initialised via :func:`from_base_layout`.
        self.base_layout_positions = None
예제 #3
0
파일: jobcreator.py 프로젝트: papagr/TheLMA
 def _create_iso_layout(self):
     """
     Creates a :class:`StockSampleCreationLayout` for a single ISO.
     Positions are populated column-wise.
     """
     ssc_layout = StockSampleCreationLayout()
     for rack_pos in get_positions_for_shape(ssc_layout.shape,
                                             vertical_sorting=True):
         if not self._have_candidates:
             break
         pool_cand = self._pool_candidates.pop(0)
         ssc_pos = \
             StockSampleCreationPosition(rack_pos,
                                         pool_cand.pool,
                                         pool_cand.get_tube_barcodes())
         ssc_layout.add_position(ssc_pos)
     return ssc_layout
예제 #4
0
 def _create_iso_layout(self):
     """
     Creates a :class:`StockSampleCreationLayout` for a single ISO.
     Positions are populated column-wise.
     """
     ssc_layout = StockSampleCreationLayout()
     for rack_pos in get_positions_for_shape(ssc_layout.shape,
                                             vertical_sorting=True):
         if not self._have_candidates:
             break
         pool_cand = self._pool_candidates.pop(0)
         ssc_pos = \
             StockSampleCreationPosition(rack_pos,
                                         pool_cand.pool,
                                         pool_cand.get_tube_barcodes())
         ssc_layout.add_position(ssc_pos)
     return ssc_layout