Explorar o código

added prep_time=1 to minimal simulator to avoid time advance 0 loops

Snej69420 hai 3 meses
pai
achega
c4b1eaf2cb
Modificáronse 1 ficheiros con 4 adicións e 4 borrados
  1. 4 4
      devstone/pythonpdevs-minimal/main.py

+ 4 - 4
devstone/pythonpdevs-minimal/main.py

@@ -51,13 +51,13 @@ if __name__ == '__main__':
     devstone_model = None
     start_time = time.time()
     if args.model_type == "LI":
-        devstone_model = LI("LI_root", args.depth, args.width, args.int_cycles, args.ext_cycles)
+        devstone_model = LI("LI_root", args.depth, args.width, args.int_cycles, args.ext_cycles, prep_time=1)
     elif args.model_type == "HI":
-        devstone_model = HI("HI_root", args.depth, args.width, args.int_cycles, args.ext_cycles)
+        devstone_model = HI("HI_root", args.depth, args.width, args.int_cycles, args.ext_cycles, prep_time=1)
     elif args.model_type == "HO":
-        devstone_model = HO("HO_root", args.depth, args.width, args.int_cycles, args.ext_cycles)
+        devstone_model = HO("HO_root", args.depth, args.width, args.int_cycles, args.ext_cycles, prep_time=1)
     elif args.model_type == "HOmod":
-        devstone_model = HOmod("HOmod_root", args.depth, args.width, args.int_cycles, args.ext_cycles)
+        devstone_model = HOmod("HOmod_root", args.depth, args.width, args.int_cycles, args.ext_cycles, prep_time=1)
 
     env = DEVStoneEnvironment("DEVStoneEnvironment", devstone_model)
     model_created_time = time.time()