Skip to content

Commit

Permalink
GYRE runs on sorted profiles for fles='all'
Browse files Browse the repository at this point in the history
  • Loading branch information
gautam-404 committed Jan 30, 2023
1 parent 97a0755 commit b3a1b5c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion MESAcontroller/MesaProjManager/project_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,8 @@ def runGyre(self, gyre_in, files='', silent=True, target=None):
raise ValueError("Invalid input for argument 'silent'")

if files == 'all':
filenames = glob.glob(os.path.join(LOGS_dir, "*.FGONG"))
filenames = sorted(glob.glob(os.path.join(LOGS_dir, "*.FGONG")),
key=lambda x: int(os.path.basename(x).split('.')[0].split('profile')[1]))
if len(filenames) == 0:
raise ValueError("No FGONG files found in LOGS directory.")
else:
Expand Down

0 comments on commit b3a1b5c

Please sign in to comment.