Skip to content

Commit

Permalink
Implement suggestion to allow fileglob in AGASC_HDF5_FILE
Browse files Browse the repository at this point in the history
  • Loading branch information
taldcroft committed Sep 27, 2023
1 parent 8ea5a53 commit 1646087
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion agasc/agasc.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,9 @@ def get_agasc_filename(
"""
if agasc_file is None:
if "AGASC_HDF5_FILE" in os.environ:
return str(default_agasc_dir() / os.environ["AGASC_HDF5_FILE"])
agasc_file = os.environ["AGASC_HDF5_FILE"]
if agasc_file.endswith(".h5"):
return str(default_agasc_dir() / os.environ["AGASC_HDF5_FILE"])
else:
agasc_file = "proseco_agasc_*"

Expand Down

0 comments on commit 1646087

Please sign in to comment.