mirror of
https://github.com/gsi-upm/soil
synced 2024-11-13 23:12:28 +00:00
16 lines
356 B
Python
16 lines
356 B
Python
|
|
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__":
|
|
soil = Model(dump=True)
|
|
run(soil)
|