1
0
mirror of https://github.com/gsi-upm/soil synced 2024-11-14 15:32:29 +00:00
soil/run.py

16 lines
356 B
Python
Raw Normal View History

2017-12-15 16:59:50 +00:00
from server import ModularServer
from visualization import GraphVisualization, Model
def run(model, params=None):
graphVisualization = GraphVisualization(params)
server = ModularServer(model, graphVisualization, name="SOIL Model")
server.port = 8001
server.launch()
if __name__ == "__main__":
2017-12-20 17:10:14 +00:00
soil = Model(dump=True)
2017-12-15 16:59:50 +00:00
run(soil)