def reset(self):
        """Reset the simulation to its initial state."""
        warnings.warn("This reset method is very crude.  It should work for "
                      "many simple simulations, but we make no guarantees. In "
                      "particular, if you have components that manage their "
                      "own state in any way, this might not work.")
        self.population._population = self._initial_population
        self.clock._time = self._start_time
def reset ( self ) : warnings . warn ( "This reset method is very crude.  It should work for " "many simple simulations, but we make no guarantees. In " "particular, if you have components that manage their " "own state in any way, this might not work." ) self . population . _population = self . _initial_population self . clock . _time = self . _start_time
Reset the simulation to its initial state.