Reputation: 107
Is there a way to reset (set to ZERO) the simulation clock using simPy?
Today I am reseting the while Environment using
env = simpy.Environment()
It works, but it seems a huge workaround to a simple issue.
Upvotes: 0
Views: 312
Reputation: 1969
I am not sure there is, and I would think doing so could mess up the event queue.
I would think you would want to use
env = simpy.Environment()
to make sure your are starting with a clean environment with no left over events or resources.
Upvotes: 1