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

[AUTO] Update data #253

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

PietrH-bot
Copy link
Collaborator

Brief description

This is an automatically generated PR.
The following steps are all automatically performed:

  • Fetch raw data
  • Map raw data to DwC standard and save the output in ./data/processed
  • Get an overview of the changes
  • Run some tests, e.g. check the uniqueness of occurrenceID, check that all occurrences have a eventID and scientificName, ...

Note to the reviewer: the workflow automation is still in a development phase. Please, check the output thoroughly before merging to main. In case, improve the data fecthing fetch_data.Rmd, the mapping dwc_mapping.Rmd, both in ./src or the GitHub workflows fetch-data.yaml and mapping_and_testing.yaml in ./.github/workflows.

Files changed:
M	data/processed/occurrence.csv
@PietrH
Copy link
Member

PietrH commented Jan 2, 2025

── Failure: There is at least one record for every year since the beginning of the data ──
sort(unique(lubridate::year(dwc_occurrence$eventDate))) (`actual`) not equal to seq(2021, as.double(format(Sys.Date(), "%Y"))) (`expected`).

  `actual[2:4]`: 2022 2023 2024     
`expected[2:5]`: 2022 2023 2024 2025

Error:
! Test failed

test failed on edge case where no new data was published for 2025 yet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants