NetworkSim.simulation.tools.load_save.clear_env

NetworkSim.simulation.tools.load_save.clear_env(simulator, minimal)[source]

Function to clear all simpy Environment in the simulator.

Parameters
  • simulator (BaseSimulator) – The simulator whose env variable is to be cleared.

  • minimal (bool, optional) – If the size is further reduced.

Returns

simulator – The simulator with all env variable cleared.

Return type

BaseSimulator