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

Spectrum interpolate with cloning on breaks units #12

Closed RiceMunk closed 9 years ago

RiceMunk commented 9 years ago

doing spec1.interpolate(spec2,clone=True) throws a warning about no units given, and also breaks the units in the new spectrum.

Might be related to cloning or something with interpolate.

RiceMunk commented 9 years ago

Looks like numpy.interp break astropy units when it operates on astropy quantity arrays.

RiceMunk commented 9 years ago

Fixed in develop branch