-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Read.spc leads to error while reading any horiba spc files From 2018 version till now. #124
Comments
Hi @b8e5n
Many thanks. |
Hello Caudia,
|
Hi @b8e5n , if you still have access to the instrument, the easiest would be to acquire a couple of new random spectra, save in this file format, and share with us. Please also indicate the name and model of the instrument you use. Thank you! |
It looks as if these are files in a particular subformat of .spc that I've never had access to so far. So @ximeg is right, we need a small test file to look into this. If the problematic data is a time series or depth scan, a very small such file of maybe 3 or 5 spectra or a 2 x 3 map/image would be sufficient. But we'd need it to be of so unimportant content that you can contribute it to the hyperSpec project as material for unit testing. |
This is not up to me, and I do not have direct access to the machines and software. I will share it once I got a sample. |
sample.spc.pdf |
@b8e5n, many thanks. Could you leave a short description of what we should see in the file? |
It can be imported easily with 2017 version:
Here is the print, and a plot of the spectra. Not sure if this is what you are asking for.
|
Thank you @b8e5n , your comment that the old version from Oct 2017 was working is very valuable. It allowed me to track down the exact code change that changed this behavior. Here is what I didI checked out a commit from Oct 2017, which was #!/usr/bin/env Rscript
library(hyperSpec)
devtools::load_all('~/dev/hyperSpec/hyperSpec/')
label=list()
read.spc('~/tmp/sample.spc') The script exit code is 0 on success and 1 in case of error. Then I used
Here are the code changes between working The change was in the function @cbeleites , could you please comment on that? I have no idea what this code actually does :) |
I'll check - but first need to submit hotfix #134 to CRAN. |
I think, the discussion must continue in r-hyperspec/hySpc.read.spc#3 as the functions related to spc were moved to package |
So far, I had no luck reading horiba labspec generated files using any version after 20171005.
The error message is the following:
Looking at the code, I haven't found anything that could fix that.
The text was updated successfully, but these errors were encountered: