Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
gautam-404 committed Nov 15, 2023
1 parent c8d6e45 commit 239e235
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions mesaport/ProjectOps/ops_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 239e235

Please sign in to comment.