scikit-spectra icon indicating copy to clipboard operation
scikit-spectra copied to clipboard

IUnit system

Open hughesadam87 opened this issue 10 years ago • 1 comments

Maybe dont' force this into same system for index, but somethign consistent based on classes would be nice at least for metadata. That way can ensure consistency in plotting API.

hughesadam87 avatar Sep 09 '14 00:09 hughesadam87

Myabe don't make this too involved? Or if it is the same system, at least put an attribute on Spectra that let's user set the default name for the absolute data that would otherwise be Counts. Imagine in my experiment, counts is actually optical density. Then I do something like:

spectra.itype = 'optical density'

Is this a real use case? Then under the hood, refunit and stuff are still all hooked up. I guess in the end, what I want I need to do is make sure the plotting API is clear and consistent with how it refers to IUnits, reference vs. non etc... and look at published spectral plots and see what the title/axis labels usually look like in reference to the IUnit

hughesadam87 avatar Sep 09 '14 16:09 hughesadam87