lmpy.data_wrangling.occurrence.attribute_modifier_wrangler

Module containing attribute modifier occurrence data wrangler.

Module Contents

Classes

AttributeModifierWrangler

Constructor for AttributeModifierWrangler class.

class lmpy.data_wrangling.occurrence.attribute_modifier_wrangler.AttributeModifierWrangler(attribute_name, attribute_func, **params)[source]

Bases: lmpy.data_wrangling.occurrence.base._OccurrenceDataWrangler

Constructor for AttributeModifierWrangler class.

Parameters
  • attribute_name (str) – The name of the attribute to modify.

  • attribute_func (Method) – A function to generate values for a point.

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

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

Update point attributes.

Parameters

point (Point) – A point to modify.

Returns

Modified point and boolean if point was modified.

Return type

Point, bool