Closed MartinHinz closed 5 years ago
Please do not merge I got the message that Salvador Herrando-Perez was sucessful with this implementation!
Merging #23 into master will decrease coverage by
0.28%
. The diff coverage is85.71%
.
@@ Coverage Diff @@
## master #23 +/- ##
==========================================
- Coverage 81.71% 81.42% -0.29%
==========================================
Files 13 13
Lines 853 840 -13
==========================================
- Hits 697 684 -13
Misses 156 156
Impacted Files | Coverage Δ | |
---|---|---|
R/oxcAARCalibratedDate.R | 85.71% <100%> (+0.64%) |
:arrow_up: |
R/parsing_functions.R | 84.48% <100%> (-0.63%) |
:arrow_down: |
R/utility_functions.R | 87.69% <66.66%> (-0.84%) |
:arrow_down: |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update a7d1e34...0cacf04. Read the comment docs.
Nice! Test-driven development! Why not merge if it works?
Taking this up after some delay. Salvadore wrote:
Thanks for your kind and positive response.
So far, so good.
I have tried the new version, and the problem has been solved for the sigma thresholds stated in my first email, however the script continues to crash for large ages and/or very low precisions. For instance, for uncalibrated ages of 40, 50 and 60 ky, the crashing occurs at precisions somewhere within intervals 9 to 10, 1.7 to 1.8 and 6 to 7 ky, respectively. These are extreme values in some cases but not in others, e.g., an age of, say, 50 +/- 3 ky is common for many of the Late-Pleistocene megafauna species I am dealing with. An additional caveat is that xlim and ylim in oxcalCalibrate() seems to have an upper bound around 45 ky - so for old ages and/or very low precisions the calibration curve might fail to display or not show the error bars.
Will write test for that and report soon.
Or, actually even better, make up an new issue and a new dev branch to fix these errors. So I will merge this now.
Further bug fixing will be done in relation to #24 and #25.
Salvador Herrando-Perez wrote:
Change formatDateAdBC to treat NAs correctly, also changed the format function in general so that "posterior" is always written. Additionally fixed side_by_side_output so that sigma results are correctly returned if no posterior is existing. Before, due to wrong usage of ifelse, only first line was printed.