Temporary fix for reading Agouti exports in Camtraptor

31 views
Skip to first unread message

Peter Desmet

unread,
Sep 30, 2024, 9:25:45 AM9/30/24
to agouti-users
Hi all,

Agouti export files currently have an extra non-standard field (agoutiEventID) in the media.csv. This causes a cryptic error when reading the data with camtraptor or camtrapdp (e.g. reported here):

Invalid input type, expected 'list' actual 'NULL'

If you have encountered this issue, please read further.

1. Current fix (R)

Move the content of the agoutiEventID to mediaComments (as "sequenceID: value") and remove the field. You can do this by running this script: https://gist.github.com/peterdesmet/fa9e6dfbd3020055d137d641492c47a3

It updates the files on your disk, so you only have to do this once per export.

2. Upcoming fix (Agouti)

In the next version of Agouti (planned early October), the extra field agoutiEventID will be removed again. As with the current fix above, sequenceIDs will be added to the media.csv in mediaComments as "sequenceID: value".

3. Long-term fix (Camtrap DP)

In a future version of Camtrap DP, the eventID field will be added to the media.csv, so observations and media can be hard-linked via an eventID (and not only by timestamps). We will use this in Agouti exports for sequenceIDs.

Kind regards,

Peter

--
Peter Desmet (he/him)
Open data coordinator

Research Institute for Nature and Forest (INBO)
Open science lab for biodiversity

peter.desmet

unread,
Oct 1, 2024, 4:12:38 AM10/1/24
to agouti-users
Hi all,

Yorick has informed me that the Upcoming fix (Agouti) has already been available in Agouti since September 19. My temporary fix is thus only necessary for exports you created before that date.

Cheers,

Peter
Reply all
Reply to author
Forward
0 new messages