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

Don't crash in calc_AverageDose() on some RLum.Results objects #286

Merged
merged 2 commits into from
Oct 4, 2024

Conversation

mcol
Copy link
Contributor

@mcol mcol commented Oct 4, 2024

The RLum.Results object generated by calc_AverageDose() has only one row, and R returns its standard deviation as NA. In this case, we reset it to 0 and carry on. However, with just one value, also the breaks argument of hist() needs to be manually set to avoid an error.

Fixes #285. Additionally, it adds a snapshot test (part of #243).

mcol added 2 commits October 4, 2024 11:40
The RLum.Results object generated by calc_AverageDose() has only one row,
and R returns its standard deviation as NA. In this case, we reset it to 0
and carry on. However, with just one value, also the breaks argument of
hist() needs to be manually set to avoid an error.
@mcol mcol merged commit 1027a0c into master Oct 4, 2024
9 checks passed
@mcol mcol deleted the issue_285 branch October 4, 2024 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

calc_AverageDose() crashes on its own RLum.Results object
1 participant