New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't use stsynphot, use plain synphot. #421
Conversation
…s of unrelated reference data
Codecov Report
@@ Coverage Diff @@
## develop #421 +/- ##
===========================================
- Coverage 74.27% 74.26% -0.02%
===========================================
Files 18 18
Lines 6087 6084 -3
===========================================
- Hits 4521 4518 -3
Misses 1566 1566
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd also look for "stsynphot" in tox.ini
and in all the docs' .rst
files
@@ -1465,7 +1468,7 @@ def specFromSpectralType(sptype, return_list=False, catalog=None): | |||
import os | |||
cdbs = os.getenv('PYSYN_CDBS') | |||
if cdbs is None: | |||
raise EnvironmentError("Environment variable $PYSYN_CDBS must be defined for stsynphot") | |||
raise EnvironmentError("Environment variable $PYSYN_CDBS must be defined for synphot") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does PYSYN_CDBS
also need to be defined for synphot? Or should this line stay stsynphot? I thought it was stsynphot specific, but I may be wrong
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Besides my 1 comment, this looks good. And I'll let you test that it also works with the synphot-only webbpsf.
That one function - looking up for spectral type to a stellar spectrum - may be the one piece that for now actually does require stsynphot. But that's an optional piece of functionality which many users never use, so I'm OK with that. |
Swap to synphot instead of pysynphot for poppy, at basically no loss in functionality we care about. This avoids needing to download many GBs of unrelated reference data.
The HST calibration spectral dataset is 4.25 GB. That's not acceptable to force as a required download on all users, given the diverse set of use cases for poppy which are in some cases completely unrelated to HST/JWST data. (e.g. optics lab technology work and cubesat optical modeling)