Python Component API: class PropertyCalculator

The following methods are available for Python class PropertyCalculator.

This page discusses:

Description

This class is a wrapper around Pipeline Pilot's property calculator infrastructure. It is class is part of the pilotpython module, which is available in the Python (on Server) component.

class PropertyCalculator(builtins.object)

PropertyCalculator.__del__()
Description Deletes the PropertyCalculator.
Input parameters None
Return value None
PropertyCalculator.__init__(context)
Description Constructor.
Input parameters param context: Run context object

type context: pilotpython.Context

Return value None
PropertyCalculator.calculate(dataRecord)
Description Calculates properties and attaches them to the specified data record.
Input parameters param dataRecord: Data record to calculate the properties for

type dataRecord: pilotpython.DataRecord

Return value None
PropertyCalculator.removeCalculatedProperties(dataRecord)
Description Removes calculated properties from the property list.
Input parameters param dataRecord: Data record with calculated properties

type dataRecord: pilotpython.DataRecord

Return value None
PropertyCalculator.setPropertiesToCalculate(propNames, check)
Description Assigns the list of properties to calculate.
Input parameters param propNames: Set of properties to calculate

type propNames: iterable

param check: If True, checks if each property in list can be calculated

type check: bool

Return value None

Data descriptors defined here

PropertyCalculator.__dict__
Description dictionary for instance variables (if defined)
PropertyCalculator.__weakref__
Description list of weak references to the object (if defined)