Commit 986882d3 authored by Karol Actun's avatar Karol Actun
Browse files

reset fix - added reloading the solution module (resetting its global variables)

parent 56b64717
......@@ -67,6 +67,9 @@ class World:
else:
self.vis = None
mod = importlib.import_module('solution.' + self.config_data.solution)
importlib.reload(mod)
mod = importlib.import_module('scenario.' + self.config_data.scenario)
if config_data.visualization:
......@@ -117,6 +120,9 @@ class World:
if self.config_data.visualization:
self.vis.reset()
mod = importlib.import_module('solution.' + self.config_data.solution)
importlib.reload(mod)
mod = importlib.import_module('scenario.' + self.config_data.scenario)
if self.config_data.visualization:
......
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