spacetelescope / specviz

An interactive astronomical 1D spectra analysis tool.
http://specviz.readthedocs.io
BSD 3-Clause "New" or "Revised" License
43 stars 31 forks source link

Change data passed into `add_component` to be a glue Component to attach units #679

Closed brechmos-stsci closed 5 years ago

brechmos-stsci commented 5 years ago

From @nmearl in https://github.com/spacetelescope/cubeviz/issues/501#issuecomment-468693750:

The data passed to the add_component method is a simple array-like. This needs to be changed to an explicitly glue Component object in order to attached associated units. This would need to be done in specviz's glue data viewer.

nmearl commented 5 years ago

Fixed with #680.