I think we should try to use accessor methods wave and flux everywhere possible. One reason for this is represented in the SpectrumResampler implementation: it encapsulates a Spectrum and has valid flux and wave methods, but the current version of redden! will not work because it relies on the existence of a spec.flux field rather than the flux(spec) method.
I think we should try to use accessor methods
waveandfluxeverywhere possible. One reason for this is represented in theSpectrumResamplerimplementation: it encapsulates a Spectrum and has validfluxandwavemethods, but the current version ofredden!will not work because it relies on the existence of aspec.fluxfield rather than theflux(spec)method.