lsst.pipe.tasks gd5638573c2+392ae78cd2
Loading...
Searching...
No Matches
lsst.pipe.tasks.functors.CustomFunctor Class Reference
Inheritance diagram for lsst.pipe.tasks.functors.CustomFunctor:
lsst.pipe.tasks.functors.Functor

Public Member Functions

 __init__ (self, expr, **kwargs)
 name (self)
 columns (self)
Public Member Functions inherited from lsst.pipe.tasks.functors.Functor
 __init__ (self, filt=None, dataset=None, noDup=None)
 noDup (self)
 multilevelColumns (self, data, columnIndex=None, returnTuple=False)
 __call__ (self, data, dropna=False)
 difference (self, data1, data2, **kwargs)
 fail (self, df)
 shortname (self)

Public Attributes

 expr = expr
Public Attributes inherited from lsst.pipe.tasks.functors.Functor
 filt = filt
str dataset = dataset if dataset is not None else self._defaultDataset
 log = logging.getLogger(type(self).__name__)

Protected Member Functions

 _func (self, df)
Protected Member Functions inherited from lsst.pipe.tasks.functors.Functor
 _get_data_columnLevels (self, data, columnIndex=None)
 _get_data_columnLevelNames (self, data, columnIndex=None)
 _colsFromDict (self, colDict, columnIndex=None)
 _get_columnIndex (self, data)
 _get_data (self, data)
 _setLevels (self, df)
 _dropna (self, vals)

Static Protected Attributes

tuple _ignore_words = ('mag', 'sin', 'cos', 'exp', 'log', 'sqrt')
Static Protected Attributes inherited from lsst.pipe.tasks.functors.Functor
str _defaultDataset = 'ref'
tuple _dfLevels = ('column',)
bool _defaultNoDup = False

Additional Inherited Members

Protected Attributes inherited from lsst.pipe.tasks.functors.Functor
 _noDup = noDup

Detailed Description

Arbitrary computation on a catalog.

Column names (and thus the columns to be loaded from catalog) are found by
finding all words and trying to ignore all "math-y" words.

Parameters
----------
expr : str
    Expression to evaluate, to be parsed and executed by
    `~lsst.pipe.tasks.functors.mag_aware_eval`.

Member Function Documentation

◆ _func()

lsst.pipe.tasks.functors.CustomFunctor._func ( self,
df )
protected

Reimplemented from lsst.pipe.tasks.functors.Functor.

◆ columns()

lsst.pipe.tasks.functors.CustomFunctor.columns ( self)
Columns required to perform calculation.

Reimplemented from lsst.pipe.tasks.functors.Functor.

◆ name()

lsst.pipe.tasks.functors.CustomFunctor.name ( self)

Reimplemented from lsst.pipe.tasks.functors.Functor.


The documentation for this class was generated from the following file:
  • python/lsst/pipe/tasks/functors.py