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 3bbd88d commit d3e8c43
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mesaport/ProjectOps/ops_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def run_subprocess(commands, wdir, silent=True, runlog='', status=None,
gyre_obj = GyreAccess()
if parallel:
# profile_num = filename.split('/')[-1].split(f".{data_format}")[0]
profile_stem = Path(filename).stem
profile_stem = Path(filename).stem.split(".data")[0]
new_gyre_in = os.path.join(wdir, f"gyre{profile_stem}.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)
Expand All @@ -54,7 +54,6 @@ 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 d3e8c43

Please sign in to comment.