Skip to content

Commit

Permalink
Switch to local versions of Sun and Vega to avoid triggering current …
Browse files Browse the repository at this point in the history
…synphot bug when the urlread fails
  • Loading branch information
talister committed Aug 27, 2024
1 parent 048e2e3 commit 84f72a8
Show file tree
Hide file tree
Showing 3 changed files with 645 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/etc/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -427,9 +427,17 @@ class Conf(ConfigNamespace):
}

# STANDARD STARS
vega_file = ConfigItem("https://ssb.stsci.edu/cdbs/calspec/alpha_lyr_stis_010.fits", "Vega")
# Switched to local files to prevent remote fetch issues triggering synphot bug
# vega_file = ConfigItem("https://ssb.stsci.edu/cdbs/calspec/alpha_lyr_stis_010.fits", "Vega")
vega_file = ConfigItem(
os.path.join(os.path.dirname(__file__), "data", "spectra", "alpha_lyr_stis_010.fits"), "Vega"
)
# sun_file = ConfigItem(
# "https://ssb.stsci.edu/cdbs/calspec/sun_reference_stis_002.fits",
# "Solar reference spectrum from https://www.stsci.edu/hst/instrumentation/reference-data-for-calibration-and-tools/astronomical-catalogs/calspec.html",
# )
sun_file = ConfigItem(
"https://ssb.stsci.edu/cdbs/calspec/sun_reference_stis_002.fits",
os.path.join(os.path.dirname(__file__), "data", "spectra", "sun_reference_stis_002.fits"),
"Solar reference spectrum from https://www.stsci.edu/hst/instrumentation/reference-data-for-calibration-and-tools/astronomical-catalogs/calspec.html",
)

Expand Down
Loading

0 comments on commit 84f72a8

Please sign in to comment.