Skip to content

Commit

Permalink
f runner fix only if exists
Browse files Browse the repository at this point in the history
  • Loading branch information
alongd committed Dec 4, 2024
1 parent d55277c commit a14a56b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion t3/runners/rmg_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit a14a56b

Please sign in to comment.