Closed josePhoenix closed 9 years ago
OpticalSystem has this functionality; just need to pass source
through as a (wavelengths, weights) tuple
Addressed in commit b28162c but needs testing.
Did you push after committing? I'm not seeing it
This was a commit to poppy/instrument.py not anything in webbpsf.
https://github.com/mperrin/poppy/commit/b28162c00ebafbb8739ae66bd0b5ded3a8d1ef4b
ahh right :+1:
Seems to be working for Kyle; will open issue on POPPY to add test for this.
The docs say source spectra can be provided a variety of ways, but it looks like options 2 and 3 are not currently functional. We should update the docs and/or POPPY.
Reported by @kvangorkom.
To reproduce:
Run this code and note the output. Specifically, the part that says
Pysynphot unavailable (or invalid source supplied)! Assuming flat # of counts versus wavelength.
It looks like
poppy/instrument.py
line 611 (_getWeights
) is the section of interest in poppy.Output: