Commit f4b6f3c0 authored by Ahmad Reza Cheraghi's avatar Ahmad Reza Cheraghi
Browse files

Update run.py for multiple run

parent 0239857c
......@@ -62,9 +62,11 @@ def swarm_sim(argv):
elif opt in ("-n", "--maxrounds"):
max_round = int(arg)
elif opt in ("-m"):
multiple = int(arg)
multiple_sim = int(arg)
elif opt in ("-v"):
visualization = arg
visualization = int(arg)
elif opt in ("-d"):
act_date = arg
#logging.basicConfig(filename='myapp.log', filemode='w', level=logging.INFO, format='%(asctime)s %(message)s')
......@@ -75,7 +77,7 @@ def swarm_sim(argv):
dir_name = nTime + "_" + solution_file.rsplit('.',1)[0] + "_" + \
str(seedvalue)
if multiple_sim == 1:
directory = "./outputs/mulitple/" + dir_name + "/" + str(seedvalue)
directory = "./outputs/mulitple/"+ act_date + "/" + str(seedvalue)
else:
directory = "./outputs/" + dir_name
if not os.path.exists(directory):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment