def go(self): plotter = Plotter("outdir", "sim", clean=False) grid = Grid(plotter) for num_of_agents in poisson.rvs(5, size=42): agents = [Agent.build() for i in xrange(num_of_agents)] # print agents print "\nStep {0}\n".format(self.step) grid.push(agents) grid.tick() self.step += 1