You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently iNatClient.observations.create() and update() take individual keyword arguments, same as v1.create_observation(), but I would like it to optionally accept an Observation instead. This would be useful for observations loaded from a file (CSV, JSON, etc.) via pyinaturalist-convert. See also #542
A small problem is that only a subset of Observation attributes can be used to create a new observation. For example, you can't add identifications, comments, or a full Taxon record (aside from name/ID) that way. It might be sufficient to just ignore any extra attributes, and log a warning indicating which attributes were ignored. For example:
Currently
iNatClient.observations.create()
andupdate()
take individual keyword arguments, same asv1.create_observation()
, but I would like it to optionally accept anObservation
instead. This would be useful for observations loaded from a file (CSV, JSON, etc.) via pyinaturalist-convert. See also #542A small problem is that only a subset of
Observation
attributes can be used to create a new observation. For example, you can't add identifications, comments, or a full Taxon record (aside from name/ID) that way. It might be sufficient to just ignore any extra attributes, and log a warning indicating which attributes were ignored. For example:The text was updated successfully, but these errors were encountered: