From 239e2359d4a525929f222b458ad0ea0fc3e1983a Mon Sep 17 00:00:00 2001 From: gautam-404 Date: Thu, 16 Nov 2023 02:42:46 +1000 Subject: [PATCH] test --- mesaport/ProjectOps/ops_helper.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/mesaport/ProjectOps/ops_helper.py b/mesaport/ProjectOps/ops_helper.py index 254df75..8d9779f 100644 --- a/mesaport/ProjectOps/ops_helper.py +++ b/mesaport/ProjectOps/ops_helper.py @@ -43,15 +43,9 @@ def run_subprocess(commands, wdir, silent=True, runlog='', status=None, if parallel: num = filename.split(".")[0] new_gyre_in = os.path.join(wdir, f"gyre{num}.in") - - # with file_operation_lock: - # # Ensure thread-safe file operations - # if os.path.exists(new_gyre_in): - # os.remove(new_gyre_in) - # shutil.copyfile(gyre_in, 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) # Update gyre_in to the new file gyre_in = new_gyre_in