Commit 697d9340 authored by Jérome Perrin's avatar Jérome Perrin

fix dream_run script

parent 67392c79
......@@ -207,14 +207,5 @@ def main(*args):
# start the server
app.run(debug=True, host=arguments.host, port=arguments.port)
def run(*args):
# run with one topology input
args = args or sys.argv[1:]
input_data = json.load(open(args[0]))
queue = multiprocessing.Queue()
_runSimulation(input_data, queue)
output_data = queue.get()
print json.dumps(output_data, indent=True)
if __name__ == "__main__":
main()
......@@ -22,7 +22,6 @@ setup(
[console_scripts]
dream_platform=dream.platform:main
dream_simulation=dream.simulation.LineGenerationJSON:main
dream_run=dream.platform:run
"""),
include_package_data=True,
zip_safe=False,
......
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