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

Spectrum doesn't support all slicing

Open hughesadam87 opened this issue 10 years ago • 1 comments

We are hard-coding index into Spectrum:

  out = cls(series.values, index=spectra.index)

However, what if I just sliced a single row and multiple columns. Then the index should be columns! I think this needs to be rectified somehow in the _transfer method() where this is called?

hughesadam87 avatar Nov 17 '14 18:11 hughesadam87

Would probably have to figure out if these values are in the original spectra row-wise or column wise.

  out = cls(series.values, index=spectra.index)

vs

  out = cls(series.values, index=spectra.columns)

hughesadam87 avatar Nov 17 '14 18:11 hughesadam87