소스 검색

no need to import random, or seed anymore

Joeri Exelmans 10 달 전
부모
커밋
94b3b47e87
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 3
      examples/queueing/experiment.py

+ 1 - 3
examples/queueing/experiment.py

@@ -1,5 +1,4 @@
 from pypdevs.simulator import Simulator
-import random
 
 # Import the model we experiment with
 from system import QueueSystem
@@ -22,7 +21,6 @@ values = []
 # Loop over different configurations
 for i in range(1, max_processors):
     # Make sure each of them simulates exactly the same workload
-    random.seed(1)
     # Set up the system
     procs = [speed] * i
     m = QueueSystem(mu=1.0/time, size=size, num=num, procs=procs)
@@ -30,7 +28,7 @@ for i in range(1, max_processors):
     # PythonPDEVS specific setup and configuration
     sim = Simulator(m)
     sim.setClassicDEVS()
-    # sim.setVerbose() # <- uncomment to see what's going on
+    sim.setVerbose() # <- uncomment to see what's going on
     sim.simulate()
 
     # Gather information for output