cbmos/cbmodel/__init__.py
def _apply_division(self, cell, tau):
        """
        Note
        ----
        The code assumes that all cell events are division events,
        """

        #check that the parent cell has set its proliferating flag to True
        assert cell.proliferating

        division_direction = self._get_division_direction()
        updated_position_parent = cell.position -\
            0.5 * self.separation * division_direction
        position_daughter = cell.position +\
            0.5 * self.separation * division_direction

        daughter_cell = _cl.Cell(
                self.next_cell_index, position_daughter, birthtime=tau,
                proliferating=True,
                division_time_generator=cell.generate_division_time,
                parent_ID=cell.ID)
        self.next_cell_index = self.next_cell_index + 1
        self.cell_list.append(daughter_cell)
        self._queue.push(daughter_cell.division_time, daughter_cell)

        cell.position = updated_position_parent
        cell.division_time = cell.generate_division_time(tau)
        self._queue.push(cell.division_time, cell)

        _logging.debug("Division event: t={}, direction={}".format(
            tau, division_direction))

        Note
        ----
        The code assumes that all cell events are division events,
        
Note
The code assumes that all cell events are division events.
Note The code assumes that all cell events are division events .
def _apply_division(self, cell, tau):
        assert cell.proliferating
        division_direction = self._get_division_direction()
        updated_position_parent = cell.position -\
            0.5 * self.separation * division_direction
        position_daughter = cell.position +\
            0.5 * self.separation * division_direction
        daughter_cell = _cl.Cell(
                self.next_cell_index, position_daughter, birthtime=tau,
                proliferating=True,
                division_time_generator=cell.generate_division_time,
                parent_ID=cell.ID)
        self.next_cell_index = self.next_cell_index + 1
        self.cell_list.append(daughter_cell)
        self._queue.push(daughter_cell.division_time, daughter_cell)
        cell.position = updated_position_parent
        cell.division_time = cell.generate_division_time(tau)
        self._queue.push(cell.division_time, cell)
        _logging.debug("Division event: t={}, direction={}".format(
            tau, division_direction))
def _apply_division ( self , cell , tau ) : assert cell . proliferating division_direction = self . _get_division_direction ( ) updated_position_parent = cell . position - 0.5 * self . separation * division_direction position_daughter = cell . position + 0.5 * self . separation * division_direction daughter_cell = _cl . Cell ( self . next_cell_index , position_daughter , birthtime = tau , proliferating = True , division_time_generator = cell . generate_division_time , parent_ID = cell . ID ) self . next_cell_index = self . next_cell_index + 1 self . cell_list . append ( daughter_cell ) self . _queue . push ( daughter_cell . division_time , daughter_cell ) cell . position = updated_position_parent cell . division_time = cell . generate_division_time ( tau ) self . _queue . push ( cell . division_time , cell ) _logging . debug ( "Division event: t={}, direction={}" . format ( tau , division_direction ) )
Note
The code assumes that all cell events are division events,
Note The code assumes that all cell events are division events
"""
        Note
        ----
        The code assumes that all cell events are division events,
        """ #check that the parent cell has set its proliferating flag to True
self
cell
tau