Commit e01aea1b authored by Jérome Perrin's avatar Jérome Perrin

reorg classes

parent 095e5a71
......@@ -33,5 +33,3 @@ class Simulation(DefaultSimulation):
}
return conf
def run(self, data):
return DefaultSimulation.run(self._preprocess(data))
......@@ -217,6 +217,11 @@ class Simulation(object):
"""
return json.loads(simulate_line_json(input_data=json.dumps(data)))
def _preprocess(self, data):
"""Preprocess the data, for instance reading spreadsheet.
"""
return data
def run(self, data):
"""Run simulation and return result to the GUI.
"""
......
......@@ -18,5 +18,3 @@ class Simulation(DefaultSimulation):
# TODO
return data
def run(self, data):
return DefaultSimulation.run(self._preprocess(data))
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