specifysystems / lmpy

A library of tools useful for Lifemapper and related computations
GNU General Public License v3.0
2 stars 0 forks source link

Idigbio fix #349

Closed cjgrady closed 2 years ago

cjgrady commented 2 years ago

Fixes for iDigBio Darwin Core Archives

Pull Request Type

Status

Description

This PR tells the PointDwcaReader to use the default iDigBio spatial fields (lat and lon inside of a geopoint field) if they are not provided and an iDigBio DarwinCore Archive is detected. This is needed for scripts like split_occurrences that do not take those field name attributes to work properly.

Also add a message when writing out a name map on accepted name wrangler deletion fails because "open" has already been garbage collected by the interpreter.

Add a few other fail-safes that were needed with Hector's data and an often crashing (or at least throttling) GBIF names resolution service API.

lgtm-com[bot] commented 2 years ago

This pull request introduces 1 alert when merging a7f8c7adb3ffb2a7a56b1d90e7660e73d8eace6e into 4bb0eeef6c2bceb8a802467bde58073a43104ecb - view on LGTM.com

new alerts: