def setup(sim): # Set biophysics, signalling, and regulation models biophys = CLBacterium(sim, max_cells=max_cells, jitter_z=False) integ = CLEulerIntegrator(sim, 2, max_cells) # use this file for reg too regul = ModuleRegulator(sim) # Only biophys and regulation sim.init(biophys, regul, None, integ) # Specify the initial cell and its location in the simulation sim.addCell(cellType=0, pos=(0, 0, 0)) # Add some objects to draw the models therenderer = Renderers.GLBacteriumRenderer(sim) sim.addRenderer(therenderer) sim.pickleSteps = 20
def setup(sim): # Set biophysics, signalling, and regulation models biophys = CLBacterium(sim, jitter_z=False) integ = CLEulerIntegrator(sim, 2, max_cells) regul = ModuleRegulator(sim, sim.moduleName) # Only biophys and regulation sim.init(biophys, regul, None, integ) # Specify the initial cell and its location in the simulation sim.addCell(cellType=0, pos=(0, 0, 0)) if sim.is_gui: # Add some objects to draw the models from CellModeller.GUI import Renderers therenderer = Renderers.GLBacteriumRenderer(sim) sim.addRenderer(therenderer) sim.pickleSteps = 10