Skip to content

Commit

Permalink
Do not load results if return_code != 0
Browse files Browse the repository at this point in the history
  • Loading branch information
schmoelder committed Dec 11, 2024
1 parent a56847d commit 37d1f84
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cadet/cadet.py
Original file line number Diff line number Diff line change
Expand Up @@ -495,8 +495,9 @@ def run_load(
Information about the simulation run.
"""
return_information = self.run(timeout)
print(return_information)
self.load_results()

if return_information.return_code == 0:
self.load_results()

if clear:
self.clear()
Expand Down

0 comments on commit 37d1f84

Please sign in to comment.