From a14a56bb7db4594768e8f7d136a04e89a6ca85c2 Mon Sep 17 00:00:00 2001 From: Alon Grinberg Dana Date: Wed, 4 Dec 2024 14:25:23 +0200 Subject: [PATCH] f runner fix only if exists --- t3/runners/rmg_runner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t3/runners/rmg_runner.py b/t3/runners/rmg_runner.py index 801dacd5..8fad4e8f 100644 --- a/t3/runners/rmg_runner.py +++ b/t3/runners/rmg_runner.py @@ -331,7 +331,7 @@ def rmg_runner(rmg_input_file_path: str, and not(len(rmg_errors) >= 2 and error is not None and error == rmg_errors[-2]) restart_rmg = False if error is not None and 'Could not find one or more of the required files/directories ' \ 'for restarting from a seed mechanism' in error else True - if fix_cantera_model: + if fix_cantera_model and os.path.isfile(rmg_input_file_path): fix_cantera_model_files(rmg_path=os.path.dirname(rmg_input_file_path)) return not converged else: