Skip to content
Snippets Groups Projects
Commit 717f5053 authored by mads's avatar mads
Browse files

auto_status_update -> update interval

parent 64e80aba
No related branches found
No related tags found
Loading
...@@ -108,10 +108,11 @@ class Simulation(object): ...@@ -108,10 +108,11 @@ class Simulation(object):
self.host = LocalSimulationHost(self) self.host = LocalSimulationHost(self)
def start(self, auto_status_update=True): def start(self, update_interval=1):
"""Start non blocking distributed simulation""" """Start non blocking distributed simulation"""
self.is_simulating = True self.is_simulating = True
if auto_status_update: if update_interval > 0:
self.updateStatusThread.interval = update_interval
self.updateStatusThread.start() self.updateStatusThread.start()
self.non_blocking_simulation_thread.start() self.non_blocking_simulation_thread.start()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment