cbmos/cbmodel/__init__.py
def _save_data(self, positions=None):
        """
        Save the current positions of the cells to `self.history`. If
        `positions` is provided, uses theses positions instead of the cells'
        own positions.
        Note
        ----
        self.history has to be instantiated before the first call to _save_data
        as an empty list.
        """
        # copy correct positions to cell list that is stored
        if positions is not None:
            self.history.append([_cl.Cell(
                    cell.ID, pos, cell.birthtime, cell.proliferating,
                    cell.generate_division_time, cell.division_time,
                    cell.parent_ID)
                for cell, pos in zip(self.cell_list, positions)])
        else:
            self.history.append([_cl.Cell(
                    cell.ID, cell.position, cell.birthtime, cell.proliferating,
                    cell.generate_division_time, cell.division_time,
                    cell.parent_ID)
                for cell in self.cell_list])

        Save the current positions of the cells to `self.history`. If
        `positions` is provided, uses theses positions instead of the cells'
        own positions.
        Note
        ----
        self.history has to be instantiated before the first call to _save_data
        as an empty list.
        
Save the current positions of the cells to `self.history`. If
`positions` is provided, uses theses positions instead of the cells'
own positions.
Note

self.history has to be instantiated before the first call to _save_data
as an empty list.
Save the current positions of the cells to ` self . history ` . If ` positions ` is provided uses theses positions instead of the cells ' own positions . Note self . history has to be instantiated before the first call to _save_data as an empty list .
def _save_data(self, positions=None):
        if positions is not None:
            self.history.append([_cl.Cell(
                    cell.ID, pos, cell.birthtime, cell.proliferating,
                    cell.generate_division_time, cell.division_time,
                    cell.parent_ID)
                for cell, pos in zip(self.cell_list, positions)])
        else:
            self.history.append([_cl.Cell(
                    cell.ID, cell.position, cell.birthtime, cell.proliferating,
                    cell.generate_division_time, cell.division_time,
                    cell.parent_ID)
                for cell in self.cell_list])
def _save_data ( self , positions = None ) : if positions is not None : self . history . append ( [ _cl . Cell ( cell . ID , pos , cell . birthtime , cell . proliferating , cell . generate_division_time , cell . division_time , cell . parent_ID ) for cell , pos in zip ( self . cell_list , positions ) ] ) else : self . history . append ( [ _cl . Cell ( cell . ID , cell . position , cell . birthtime , cell . proliferating , cell . generate_division_time , cell . division_time , cell . parent_ID ) for cell in self . cell_list ] )
Save the current positions of the cells to `self.history`.
Save the current positions of the cells to ` self . history ` .
"""
        Save the current positions of the cells to `self.history`. If
        `positions` is provided, uses theses positions instead of the cells'
        own positions.
        Note
        ----
        self.history has to be instantiated before the first call to _save_data
        as an empty list.
        """ # copy correct positions to cell list that is stored
self
positions