lsst.pipe.tasks  20.0.0-36-g96d5af2b+31268d8628
Public Member Functions | Public 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

def __init__ (self, expr, **kwargs)
 
def name (self)
 
def columns (self)
 
def noDup (self)
 
def multilevelColumns (self, parq)
 
def __call__ (self, parq, dropna=False)
 
def difference (self, parq1, parq2, **kwargs)
 
def fail (self, df)
 
def shortname (self)
 

Public Attributes

 expr
 
 filt
 
 dataset
 

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

Definition at line 374 of file functors.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 387 of file functors.py.

Member Function Documentation

◆ __call__()

def lsst.pipe.tasks.functors.Functor.__call__ (   self,
  parq,
  dropna = False 
)
inherited

Definition at line 182 of file functors.py.

◆ columns()

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

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

Definition at line 396 of file functors.py.

◆ difference()

def lsst.pipe.tasks.functors.Functor.difference (   self,
  parq1,
  parq2,
**  kwargs 
)
inherited
Computes difference between functor called on two different ParquetTable objects

Definition at line 193 of file functors.py.

◆ fail()

def lsst.pipe.tasks.functors.Functor.fail (   self,
  df 
)
inherited

Definition at line 198 of file functors.py.

◆ multilevelColumns()

def lsst.pipe.tasks.functors.Functor.multilevelColumns (   self,
  parq 
)
inherited

◆ name()

def lsst.pipe.tasks.functors.CustomFunctor.name (   self)
Full name of functor (suitable for figure labels)

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

Definition at line 392 of file functors.py.

◆ noDup()

def lsst.pipe.tasks.functors.Functor.noDup (   self)
inherited

Definition at line 120 of file functors.py.

◆ shortname()

def lsst.pipe.tasks.functors.Functor.shortname (   self)
inherited
Short name of functor (suitable for column name/dict key)

Reimplemented in lsst.pipe.tasks.functors.Color, and lsst.pipe.tasks.functors.MagDiff.

Definition at line 208 of file functors.py.

Member Data Documentation

◆ dataset

lsst.pipe.tasks.functors.Functor.dataset
inherited

Definition at line 116 of file functors.py.

◆ expr

lsst.pipe.tasks.functors.CustomFunctor.expr

Definition at line 388 of file functors.py.

◆ filt

lsst.pipe.tasks.functors.Functor.filt
inherited

Definition at line 115 of file functors.py.


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