sbpy.spectroscopy.SpectralSource class subclasses synphot.spectrum.SourceSpectrum
This is a request for
- [ ] a new feature
- [x] an enhancement to existing sbpy functionality
- [ ] somethings else: [explain here]
The requested changes will be implemented by
- [ ] me
- [x] the sbpy developers
High-level concept
Currently sbpy.spectroscopy.SpectralSource has the spectrum in a synphot.spectrum.SourceSpectrum instance as a class attribute. By subclassing synphot.spectrum.SourceSpectrum, sbpy SpectralSource would allow for various operations defined for synphot.spectrum.SourceSpectrum, such as addition, subtraction, and multiplications of two spectra, etc. This would simplify some operations such as spectral reddening.
Explain the relevance to sbpy
An enhancement to sbpy class SpectralSourcer.
Proposal details
SpectralSource class subclasses synphot SourceSpectrum, and various adjustments to the implementation of class methods.
Example (pseudo-)code