From 37d1f84c2b856a81ad64c12281cbd6b8aa4dd460 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20Schm=C3=B6lder?= Date: Wed, 11 Dec 2024 15:16:44 +0100 Subject: [PATCH] Do not load results if return_code != 0 --- cadet/cadet.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cadet/cadet.py b/cadet/cadet.py index 5a37840..614bd21 100644 --- a/cadet/cadet.py +++ b/cadet/cadet.py @@ -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()