From 331258d30fae43c1f5b860cc0cfcf2b5d1f663d9 Mon Sep 17 00:00:00 2001 From: gautam-404 Date: Mon, 21 Oct 2024 00:54:46 +0530 Subject: [PATCH] testing evolution termination --- mesaport/ProjectOps/ops_helper.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mesaport/ProjectOps/ops_helper.py b/mesaport/ProjectOps/ops_helper.py index d099781..606e5ae 100644 --- a/mesaport/ProjectOps/ops_helper.py +++ b/mesaport/ProjectOps/ops_helper.py @@ -85,6 +85,9 @@ def run_subprocess(commands, wdir, silent=True, runlog='', status=None, if "termination code:" in outline: evo_terminated = True termination_code = outline.split()[-1] + if "cannot find acceptable model" in outline: + termination_code = 'cannot find acceptable model' + evo_terminated = False if "photo" in outline and "does not exist" in outline: evo_terminated = True termination_code = "photo does not exist" @@ -120,7 +123,7 @@ def run_subprocess(commands, wdir, silent=True, runlog='', status=None, if proc.returncode or error: print('The process raised an error:', proc.returncode, error) return False - elif evo_terminated and termination_code == None: + elif evo_terminated and termination_code != None: return False else: if gyre_in is None: