Commit a53f9748 authored by Jérome Perrin's avatar Jérome Perrin

remove print commited by mistake

and add one assertion
parent d218f990
...@@ -52,6 +52,7 @@ class ACO(plugin.ExecutionPlugin): ...@@ -52,6 +52,7 @@ class ACO(plugin.ExecutionPlugin):
assert collated assert collated
max_results = data['general']['numberOfSolutions'] max_results = data['general']['numberOfSolutions']
assert max_results >= 1
ants = [] #list of ants for keeping track of their performance ants = [] #list of ants for keeping track of their performance
...@@ -141,6 +142,5 @@ class ACO(plugin.ExecutionPlugin): ...@@ -141,6 +142,5 @@ class ACO(plugin.ExecutionPlugin):
result['key'] = ant['key'] result['key'] = ant['key']
result_list.append(result) result_list.append(result)
print data['result']['result_list']
self.logger.info("ACO finished, execution time %0.2fs" % (time.time() - start)) self.logger.info("ACO finished, execution time %0.2fs" % (time.time() - start))
return data return data
...@@ -683,7 +683,6 @@ def main(argv=[], input_data=None): ...@@ -683,7 +683,6 @@ def main(argv=[], input_data=None):
# XXX I am not sure we still need this case # XXX I am not sure we still need this case
return return
print G.JSONData
# XXX result_list is not needed here, we could replace result by result_list # XXX result_list is not needed here, we could replace result by result_list
G.JSONData['result'] = {'result_list': [G.outputJSON]} G.JSONData['result'] = {'result_list': [G.outputJSON]}
#logger.info("execution time="+str(time.time()-start)) #logger.info("execution time="+str(time.time()-start))
......
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