Skip to content

Commit

Permalink
gyre traceback
Browse files Browse the repository at this point in the history
  • Loading branch information
gautam-404 committed Mar 8, 2024
1 parent 0055dd2 commit 7667cfe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mesaport/ProjectOps/ops_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def run_subprocess(commands, wdir, silent=True, runlog='', status=None,
# Update gyre_in to the new file
gyre_in = new_gyre_in
commands = commands.replace("gyre.in", f"gyre{profile_stem}.in")
runlog = runlog.replace("gyre.log", f"gyre{profile_stem}.log")
runlog = os.path.join(wdir, f"gyre{profile_stem}.log")
else:
new_gyre_in = os.path.join(wdir, "gyre.in")
shutil.copyfile(gyre_in, new_gyre_in)
Expand Down
2 changes: 1 addition & 1 deletion mesaport/ProjectOps/project_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ def runGyre(self, gyre_in, files='all', wdir=None, data_format="GYRE", silent=Tr
for line in infile:
outfile.write(line)
os.remove(fname)
raise e
traceback.print_exc()
filenames = glob.glob(os.path.join(LOGS_dir, f"gyreprofile*.log"))
with open(runlog, 'a+') as outfile:
for fname in filenames:
Expand Down

0 comments on commit 7667cfe

Please sign in to comment.