scikit-spectra
scikit-spectra copied to clipboard
IUnit system
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.
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