jason-neal / spectrum_overload

An astronomy spectrum class with overloaded math operators.

Home Page:http://spectrum-overload.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Multiplication/Division does not preserve header.

jason-neal opened this issue · comments

Failing test case.

s = Spectrum([1,2,3,4], [1,2,3,4], header={"hello": "world"})
s /= 1
assert s.header is not None

It will be in one of the overloaded operators.

Added tests for this in 109a46d,

Fixed in e43dc3e, but then will be updated with the changed overloaded operators