RiceMunk / omnifit

This is a package for doing ice spectroscopy fitting of interstellar ices.
https://ricemunk.github.io/omnifit/
6 stars 5 forks source link

Arithmetic operations between spectra? #4

Open RiceMunk opened 8 years ago

RiceMunk commented 8 years ago

Currently you can do something like spectrum1.y -= spectrum2.y to subtract one spectrum from another (assuming both have the same x), but this neither checks that the spectra are compatible, and it's also a bit clumsy.

It would be much nicer to be able to simply do spectrum1 -= spectrum2 to do the same thing, while also checking that it makes sense.