Closed mperrin closed 6 years ago
Comment by josePhoenix Tuesday Dec 16, 2014 at 15:48 GMT
OpticalSystem has this functionality; just need to pass source
through as a (wavelengths, weights) tuple
Comment by josePhoenix Tuesday Dec 16, 2014 at 22:38 GMT
Did you push after committing? I'm not seeing it
Comment by mperrin Tuesday Dec 16, 2014 at 23:02 GMT
This was a commit to poppy/instrument.py not anything in webbpsf.
https://github.com/mperrin/poppy/commit/b28162c00ebafbb8739ae66bd0b5ded3a8d1ef4b
Comment by josePhoenix Thursday Dec 18, 2014 at 16:38 GMT
Seems to be working for Kyle; will open issue on POPPY to add test for this.
Issue by josePhoenix Tuesday Nov 25, 2014 at 22:16 GMT Originally opened as https://github.com/mperrin/webbpsf/issues/28
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: