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 05fc083 commit 0055dd2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mesaport/ProjectOps/project_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import subprocess
import glob
from itertools import repeat
import traceback

from rich import print, progress, prompt, status
progress_columns = (progress.SpinnerColumn(spinner_name="moon"),
Expand Down Expand Up @@ -399,7 +400,7 @@ def runGyre(self, gyre_in, files='all', wdir=None, data_format="GYRE", silent=Tr
for _ in pool.istarmap(ops_helper.run_subprocess, zip(*args)):
progressbar.advance(task)
except Exception as e:
print(e)
traceback.print_exc()
pool.terminate()
else:
try:
Expand All @@ -410,7 +411,7 @@ def runGyre(self, gyre_in, files='all', wdir=None, data_format="GYRE", silent=Tr
try:
executor.map(ops_helper.run_subprocess, *args)
except Exception as e:
print(e)
traceback.print_exc()
executor.shutdown(wait=False)
except Exception as e:
filenames = glob.glob(os.path.join(LOGS_dir, f"gyreprofile*.log"))
Expand Down

0 comments on commit 0055dd2

Please sign in to comment.