lmpy.data_wrangling.occurrence.minimum_points_wrangler

Module containing occurrence data wranglers for filtering points.

Module Contents

Classes

MinimumPointsFilter

Get an occurrence data wrangler for minimum points.

class lmpy.data_wrangling.occurrence.minimum_points_wrangler.MinimumPointsFilter(minimum_count, **params)[source]

Bases: lmpy.data_wrangling.occurrence.base._OccurrenceDataWrangler

Get an occurrence data wrangler for minimum points.

Parameters
  • minimum_count (int) – The minimum number of points in order to keep all.

  • **params (dict) – Extra parameters to be sent to the base class.

name = MinimumPointsWrangler[source]
version = 1.0[source]
_get_all_fail_condition(self)[source]
_get_all_pass_condition(self)[source]
wrangle_points(self, points)[source]

Wrangle points. Return all or none based on how many are present.

Parameters

points (list of Point) – A list of points to assess.

Returns

Either an empty list or all of the points passed in.

Return type

list of Point