Skip to content

Commit

Permalink
add download_cdbs_data if Vega is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
JarronL committed Feb 7, 2024
1 parent f7ddb80 commit 383af83
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions webbpsf_ext/synphot_ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -671,6 +671,9 @@ def load_vega(vegafile=None, **kwargs):
if vegafile is None:
vegafile = synconf.vega_file

if not os.path.exists(vegafile):
download_cdbs_data()

with synconf.set_temp('vega_file', vegafile):
try:
Vega = Spectrum.from_vega(**kwargs)
Expand Down

0 comments on commit 383af83

Please sign in to comment.