From 7f5fc802c7aeeedc053b2200b4fa53d1fa5df988 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20Schm=C3=B6lder?= Date: Fri, 29 Mar 2024 09:45:41 +0100 Subject: [PATCH] Add TODOs --- cadet/cadet.py | 4 +++- cadet/cadet_dll.py | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/cadet/cadet.py b/cadet/cadet.py index dada27c..c2e7034 100644 --- a/cadet/cadet.py +++ b/cadet/cadet.py @@ -211,7 +211,8 @@ def load_results(self): def run(self, timeout = None, check=None): data = self.cadet_runner.run(simulation=self.root.input, filename=self.filename, timeout=timeout, check=check) - #self.return_information = data + # TODO: Why is this commented out? + # self.return_information = data return data def run_load(self, timeout = None, check=None, clear=True): @@ -221,6 +222,7 @@ def run_load(self, timeout = None, check=None, clear=True): timeout=timeout, check=check ) + # TODO: Why is this commented out? # self.return_information = data self.load_results() if clear: diff --git a/cadet/cadet_dll.py b/cadet/cadet_dll.py index 8c66530..0d6dd94 100644 --- a/cadet/cadet_dll.py +++ b/cadet/cadet_dll.py @@ -690,6 +690,7 @@ def load_solution_times(self, sim): def load_coordinates(self, sim): coordinates = addict.Dict() + # TODO: Use n_units from API? for unit in range(sim.root.input.model.nunits): unit_index = self._get_index_string('unit', unit) if 'write_coordinates' in sim.root.input['return'][unit_index].keys(): @@ -711,6 +712,7 @@ def load_coordinates(self, sim): def load_solution(self, sim): solution = addict.Dict() + # TODO: Use n_units from API? for unit in range(sim.root.input.model.nunits): unit_index = self._get_index_string('unit', unit) unit_solution = addict.Dict()