-
Notifications
You must be signed in to change notification settings - Fork 3
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
284 add support for camtrap dp v1.0 #286
Conversation
Co-Authored-By: Peter Desmet <[email protected]>
4c26871
to
5fda125
Compare
Co-Authored-By: Peter Desmet <[email protected]>
03edb2a
to
0615366
Compare
2dbbf12
to
391c027
Compare
ab187d6
to
8a31e59
Compare
I'd rather skip the test for now, so it's easier to debug if it does happen to break before we switch to the different data model in camtraptor. Skipping implemented in fb477ef |
@peterdesmet Should This is how it works at the moment; if ("deploymentGroups" %in% names(deployments)) {
# map to session and then remove
deployments <- deployments %>%
dplyr::mutate(session = dplyr::case_when(
is.na(.data$session) ~.data$deploymentGroups,
is.na(.data$deploymentGroups) ~ .data$session,
!is.na(.data$deploymentGroups) & !is.na(.data$session) ~
stringr::str_c(.data$session,
.data$deploymentGroups,
sep = " | "))) %>%
dplyr::select(-"deploymentGroups")
}
If there is no value for |
Regarding
Remove deploymentGroups afterwards |
https: //github.com//pull/286#issuecomment-1794656381 Co-Authored-By: Peter Desmet <[email protected]>
…processed correctly
Ready for review, something is going wrong building the vignettes, any ideas? |
Use glue::glue_collapse() over custom transformer()
I couldn't reproduce the error while building the vignette with They support R 3.6.3 on Ubuntu only. Everything runs on Ubuntu except a machine running R 4.3.2 on windows-latest. |
Ok for me |
Fine by me. Can we merge this request? Note that it contains a version bump to v0.21.0 which you may want to include only after you fixed other issues. |
To avoid too much confusion with versioning, I think we should just merge this branch to |
STATUS: Ready for review
v1.0
Failing tests:
test-read_camptrap_dp.R
deployments.baitUse
is expected to beNA
but is actuallynone
, it should be NA since it'sfalse
in the source, these values have changed between the examples in therc
andv1.0
deployments.session
is expected to beNA
but has values fromdeploymentGroups
, these values have changed between the examples in therc
andv1.0
Missing tests
I feel additional coverage was needed for the changes below, since we were passing tests for a new v1.0 camtrap-dp even though they were not implemented yet.
Add tests for:
media.captureMethod
valuesactivityDetection
tomotionDetection
project.catureMethod
(in metadata) valuesactivityDetection
tomotionDetection