lmpy.data_wrangling.occurrence.accepted_name_wrangler

Module containing occurrence data wranglers for modifying point data.

Module Contents

Classes

AcceptedNameOccurrenceWrangler

Constructor for AcceptedNameModifier class.

class lmpy.data_wrangling.occurrence.accepted_name_wrangler.AcceptedNameOccurrenceWrangler(name_map=None, name_resolver=None, store_original_attribute=None, **params)[source]

Bases: lmpy.data_wrangling.occurrence.base._OccurrenceDataWrangler, lmpy.data_wrangling.common.accepted_name_wrangler._AcceptedNameWrangler

Constructor for AcceptedNameModifier class.

Parameters
  • name_map (dict) – A map of original name to accepted name.

  • name_resolver (str or Method) – If provided, use this method for getting new accepted names. If set to ‘gbif’, use GBIF name resolution.

  • store_original_attribute (str or None) – A new attribute to store the original taxon name.

  • **params (dict) – Keyword parameters to pass to _OccurrenceDataWrangler.

name = AcceptedNameOccurrenceWrangler[source]
version = 1.0[source]
_modify_point(self, point)[source]

Update taxon name if necessary.

Parameters

point (Point) – A point to modify.

Returns

Modified (if needed) point and boolean if point was modified.

Return type

Point, bool

_pass_condition(self, point)[source]

Determine if a point has an accepted name.

Parameters

point (Point) – A point object to assess.

Returns

An indication if the point passed the test.

Return type

bool