Commit 676e7bbc authored by Jérome Perrin's avatar Jérome Perrin

notes

parent c92e773e
...@@ -95,7 +95,7 @@ class Simulation(DefaultSimulation): ...@@ -95,7 +95,7 @@ class Simulation(DefaultSimulation):
# options list # options list
for k in collated.keys(): for k in collated.keys():
ant[k] = random.choice(collated[k]) ant[k] = random.choice(collated[k])
# TODO: function to calculate ant id. Store ant id in ant dict
ant_key = repr(ant) ant_key = repr(ant)
# if the ant was not already tested, only then test it # if the ant was not already tested, only then test it
if ant_key not in tested_ants: if ant_key not in tested_ants:
...@@ -142,5 +142,7 @@ class Simulation(DefaultSimulation): ...@@ -142,5 +142,7 @@ class Simulation(DefaultSimulation):
print "execution time=", str(time.time()-start) print "execution time=", str(time.time()-start)
# TODO: return multiple results in the GUI # TODO: return multiple results in the GUI
# return [ant['resultJSON'] for ant in ants] # { ant_key: {'score': 108, 'resultJSON': ..},
# ant2_key: {'score': 108, 'resultJSON': ..},
# }
return DefaultSimulation.run(self, data) return DefaultSimulation.run(self, data)
Markdown is supported
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