WITec matlab wavelengths#8
Conversation
|
@GregoryHuff thanks for this report and PR. There's still a lot of loose ends on many of the |
tested with both DSO and non-DSO as well as two different units
|
OK great. I updated this again. |
Apply `styler` and do some manual corrections.
|
@GregoryHuff, thanks for contributing.
I personally do not work with WITec equipment. Could you, please, provide a small file with the format you are talking about? Do that by opening a new issue and dropping a zipped file there (GitHub accepts only a few files extensions, UPDATE: I've opened issue #9 myself. Please, drop the file there.
This will be helpful. My remarks on PR:
|
GegznaV
left a comment
There was a problem hiding this comment.
Unit tests must not fail and R CMD check must pass.
|
hmm... Unless I am completely off base, there is an issue with the unit tests. This is because (until my update) the wavelengths were not being extracted from the matlab files. You can explore the time-series.mat file yourself to see that |
|
Could you, please, update unit tests, then so that R CMD check could pass? |
correct wavelengths
…c.read.mat into develop" This reverts commit f0c027b, reversing changes made to e83459d.
…uff/hySpc.read.mat into develop"" This reverts commit 961d522.
…c.read.mat into develop" This reverts commit f0c027b, reversing changes made to e83459d.
…uff/hySpc.read.mat into develop"" This reverts commit 2f3dbfd.
|
@GregoryHuff, does the bullet I added to the |
|
And, please, avoid reverting any changes I made as this let us see the changes of this PR only and not of updates in the |
|
@cbeleites, do you think this PR is ready to be merged? |
Oops. Thought I was reverting a reversion. |
looks good to me. |
|
@GregoryHuff do I understand correctly that the DSO format isn't actually Witec's file format but Witec using the Eigenvector DSO format? In that case, I suggest we add a separate |
Yes, I believe that is the case. You idea makes sense to me, although I don't know of any other companies using DSO. |
Do I understand correctly that the current function ( So we want to rename it to, say, |
Could DSO and non-DSO files be identified automatically? |
In order to differentiate between DSO and non-DSO WITec files, I check for the existence of a field called 'datasetversion'. That's good enough for the case when you know you have a WITec file, but if you want to be able to throw any matlab file in and find out whether it's DSO or not, this probably isn't thorough enough. |
|
@cbeleites Do you think, this PR is ready to be merged? Unit tests pass. |
I was playing around with hySpc.read.mat for the first time and noticed that wavelengths weren't being read into the hyperspec object. Took me a while to figure out I could do this with one line of code...