Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
gautam-404 committed Mar 8, 2024
1 parent 7667cfe commit b568afe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mesaport/ProjectOps/ops_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit b568afe

Please sign in to comment.