From b568afe5d9a95d8a39bd911d08a75cd385ad1f3e Mon Sep 17 00:00:00 2001 From: gautam-404 Date: Sat, 9 Mar 2024 00:05:30 +1000 Subject: [PATCH] debug --- mesaport/ProjectOps/ops_helper.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mesaport/ProjectOps/ops_helper.py b/mesaport/ProjectOps/ops_helper.py index 412dd2d..a15b742 100644 --- a/mesaport/ProjectOps/ops_helper.py +++ b/mesaport/ProjectOps/ops_helper.py @@ -44,6 +44,7 @@ def run_subprocess(commands, wdir, silent=True, runlog='', status=None, # profile_num = filename.split('/')[-1].split(f".{data_format}")[0] profile_stem = Path(filename).stem new_gyre_in = os.path.join(wdir, f"gyre{profile_stem}.in") + print(new_gyre_in) gyre_obj.modify_gyre_params(wdir, filename, data_format, gyre_in=new_gyre_in) gyre_obj.set(arg=gyre_input_params, wdir=wdir, gyre_in=new_gyre_in) time.sleep(1) @@ -52,6 +53,8 @@ def run_subprocess(commands, wdir, silent=True, runlog='', status=None, gyre_in = new_gyre_in commands = commands.replace("gyre.in", f"gyre{profile_stem}.in") runlog = os.path.join(wdir, f"gyre{profile_stem}.log") + print(runlog) + else: new_gyre_in = os.path.join(wdir, "gyre.in") shutil.copyfile(gyre_in, new_gyre_in)