-
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
Error when trying to read .json in R (Agouti) #334
Comments
Hi @katzikatz! Thanks for reporting. Based on the error message and backtrace it seems that the function cannot read the medila csv file. Can you send me the zip file datapackage? My e-mail: damiano.oldoni@inbo.be. Meanwhile, can you post here below the output of |
Hi @katzikatz. I could reproduce the error. No urgent need to send me a detailed session info. After a first debugging, I see that you are trying to read a However, if you don't need It's a short term solution, I know, but I hope it helps. |
Thank you! I wrote to the Agouti ppl asking about that new field. How weird, I can't find any information on their page what this is about, I last exported data a month ago and had no problem. also this is the session_info() output:
─ Packages ─────────────────────────────────────────────────────────────────────────────────────────────────────── [1] C:/Users/kajak/AppData/Local/R/win-library/4.3 Thank you so much! |
Good morning Domiano,
I replied to you in the forum, maybe someone else is also experiencing these problems.
I have attached the R Script I wrote (me and ChatGPT, we're besties).
I need the ctdp package to extract the sequence length of the observation as we would like to look into the duration an animal stayed for.
Maybe you know another way to do it? I hope Agouti is getting back to me soon, I already wrote to them on thursday about the json file, but there is no reply.
Thank you so much!!
Am Mittwoch, September 18, 2024 16:35 CEST, schrieb Damiano Oldoni ***@***.***>:
Hi @katzikatz. I could reproduce the error. No urgent need to send me a detailed session info.
After a first debugging, I see that you are trying to read a media.csv file with a field, agoutiEventID, not defined in the provided schema in datapackage.json, i.e. https://raw.githubusercontent.com/tdwg/camtrap-dp/1.0/media-table-schema.json. This issue is known now by @peterdesmet: we will work further to solve this issue.
However, if you don't need media data at the moment, you could use media = FALSE flag: read_camtrap_dp(path_to_your_json_file, media = FALSE).
It's a short term solution, I know, but I hope it helps.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>[ { ***@***.***": "http://schema.org", ***@***.***": "EmailMessage", "potentialAction": { ***@***.***": "ViewAction", "target": "#334 (comment)", "url": "#334 (comment)", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { ***@***.***": "Organization", "name": "GitHub", "url": "https://github.com" } } ]***>
|
I don't seem to understand this forum, but well. Agouti got back to me, the Agouti EventID field was only used temporarily to try and fix another issue, the new export won't include this anymore, so it should all work fine again. |
This issue has been fixed in Agouti since September 18. There's also a temporary fix available for datasets before that date. See https://groups.google.com/g/agouti-users/c/OQIod-TuTLk/m/oazpV-jbAQAJ |
Reported by @katzikatz at tdwg/camtrap-dp#388 (comment)
Hi there,
I am looking for some help, I am experiencing an error when I am trying to read the file in R Studio after unzipping the Agouti Download.
I have looked at the .csv separately and they look fine, I am not sure where the problem lies. Can someone help? Thank you so much!
kind regards,
Katzi
The text was updated successfully, but these errors were encountered: