Closed kfkaplan closed 1 year ago
Updated band math code for EchelleSpectrumList objects to fix the above issue. Also cleaned up how "x_values" is passed to increase compatibility. Added tests for the band math for the IGRINS and HPF test data. I have folded all of this into the fix_igrins_uncertainity branch and the pull request https://github.com/OttoStruve/muler/pull/89
Fixed with pull request #89
When you try to add, subtract, multiply, or divide an EchelleSpectrumList object by a single value, it doesn't work.
For example from the EchelleSpectrumList class in echelle.py:
expects
other
to be another EchelleSpectrumList object and not just a single value such as 1.0.A simple solution is to check the length of
other
and act accordingly. Something like:I will submit a pull request once I finish coding all this up.