You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
correct $spc column names for spc.*() functions #245
I have been using spc.loess to smooth some spectra. I noticed that when I export them with write.table, the x-axis (which should be "wavelengths") is just the row number. I fixed this just by adding an extra line that probably shouldn't be necessary colnames(x$spc) <- x@wavelength[]
Thank you for bringing this to our attention. Indeed, we fixed a related bug only yesterday: #237
@GegznaV would you have time to fix this like the other one? If not, please unassign yourself.
@GregoryHuff are you aware of any other places where this happens? (This is really a bug only since we decided earlier this year that colnames(spc) should be "guaranteed").
And, since you seem to work with the colnames, have a look at #232. We'll change the behaviour of as.wide.df() to allow easier interaction with models like prcomp.
@GregoryHuff we're in the middle of rather big transformations for hyperSpec, and right now IIRC the CRAN submission staff is in holidays. I therefore kindly ask you for some patience and to use your workaround possibly until we release hyperSpec 1.0.
@GregoryHuff, I updated the instructions on how to install the development version of hyperSpechere. Can you confirm that your spc.loess() related issue is solved?
Activity
cbeleites commentedon Aug 4, 2020
Thank you for bringing this to our attention. Indeed, we fixed a related bug only yesterday: #237
@GegznaV would you have time to fix this like the other one? If not, please unassign yourself.
@GregoryHuff are you aware of any other places where this happens? (This is really a bug only since we decided earlier this year that
colnames(spc)should be "guaranteed").And, since you seem to work with the colnames, have a look at #232. We'll change the behaviour of
as.wide.df()to allow easier interaction with models likeprcomp.cbeleites commentedon Aug 4, 2020
@GregoryHuff we're in the middle of rather big transformations for hyperSpec, and right now IIRC the CRAN submission staff is in holidays. I therefore kindly ask you for some patience and to use your workaround possibly until we release hyperSpec 1.0.
[-]smooth spc column names[/-][+]correct $spc column names for spc.*() functions[/+]cbeleites commentedon Aug 4, 2020
TODO:
spc.bin()(Binning + converting to wide-format dataset should not change colnames so drastically #237) and added unit test (PR Improve code coverage by unit tests #225).spc.loess(), add unit testspc.*()functions, add unit tests (add lines above for functions that are done)GegznaV commentedon Aug 4, 2020
@GregoryHuff could you provide a reprex (minimal reproducibe example) that illustrates your issue?
GegznaV commentedon Aug 4, 2020
Fixed in #247
@cbeleites I'll open a new issue for this.
GegznaV commentedon Aug 5, 2020
@GregoryHuff, I updated the instructions on how to install the development version of hyperSpec here. Can you confirm that your
spc.loess()related issue is solved?