Skip to content
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

analyse_FadingMeasurement() fails on Risoe.BINfileData2RLum.Analysis originators #281

Closed
mcol opened this issue Oct 2, 2024 · 0 comments · Fixed by #282
Closed

analyse_FadingMeasurement() fails on Risoe.BINfileData2RLum.Analysis originators #281

mcol opened this issue Oct 2, 2024 · 0 comments · Fixed by #282
Labels
bug Clear problem or crash
Milestone

Comments

@mcol
Copy link
Contributor

mcol commented Oct 2, 2024

This fails:

data(ExampleData.BINfileData, envir = environment())
d1 <- Risoe.BINfileData2RLum.Analysis(CWOSL.SAR.Data, pos = 1)
analyse_FadingMeasurement(d1)

# Error in vapply(object_clean, function(o) { : values must be length 1,
#  but FUN(X[[1]]) result is length 0

The issue seems to be that the BIN file has version 03, but the fields that the function tries to access were added only from version 05. So we should return early if the version is too old.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Clear problem or crash
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant