lsst.pipe.tasks g281251e7f9+9d3b0d3b84
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Protected Member Functions | Static Protected Attributes | List of all members
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 Attributes

 expr
 
 log
 

Protected Member Functions

 _func (self, df)
 

Static Protected Attributes

tuple _ignore_words = ('mag', 'sin', 'cos', 'exp', 'log', 'sqrt')
 

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`.

Definition at line 602 of file functors.py.

Constructor & Destructor Documentation

◆ __init__()

lsst.pipe.tasks.functors.CustomFunctor.__init__ (   self,
  expr,
**  kwargs 
)

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

Definition at line 616 of file functors.py.

Member Function Documentation

◆ _func()

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

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

Definition at line 639 of file functors.py.

◆ columns()

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

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

Definition at line 625 of file functors.py.

◆ name()

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

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

Definition at line 621 of file functors.py.

Member Data Documentation

◆ _ignore_words

tuple lsst.pipe.tasks.functors.CustomFunctor._ignore_words = ('mag', 'sin', 'cos', 'exp', 'log', 'sqrt')
staticprotected

Definition at line 614 of file functors.py.

◆ expr

lsst.pipe.tasks.functors.CustomFunctor.expr

Definition at line 617 of file functors.py.

◆ log

lsst.pipe.tasks.functors.CustomFunctor.log

Definition at line 640 of file functors.py.


The documentation for this class was generated from the following file: