Skip to content

Commit

Permalink
Add TODOs
Browse files Browse the repository at this point in the history
  • Loading branch information
schmoelder committed Mar 29, 2024
1 parent 614da9b commit 7f5fc80
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cadet/cadet.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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:
Expand Down
2 changes: 2 additions & 0 deletions cadet/cadet_dll.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand All @@ -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()
Expand Down

0 comments on commit 7f5fc80

Please sign in to comment.