lsst.pipe.tasks g253578fa50+c1a9b1f270
Loading...
Searching...
No Matches
lsst.pipe.tasks.functors Namespace Reference

Classes

class  Color
 
class  Column
 
class  CompositeFunctor
 
class  ComputePixelScale
 
class  ConvertDetectorAngleToPositionAngle
 
class  ConvertPixelSqToArcsecondsSq
 
class  ConvertPixelToArcseconds
 
class  CoordColumn
 
class  CorrelationIuuSky
 
class  CorrelationIuvSky
 
class  CorrelationIvvSky
 
class  CustomFunctor
 
class  DecColumn
 
class  DecErrColumn
 
class  DeconvolvedMoments
 
class  E1
 
class  E2
 
class  Ebv
 
class  Functor
 
class  HsmFwhm
 
class  HsmTraceSize
 
class  HtmIndex20
 
class  Index
 
class  LocalDipoleDiffFlux
 
class  LocalDipoleDiffFluxErr
 
class  LocalDipoleMeanFlux
 
class  LocalDipoleMeanFluxErr
 
class  LocalNanojansky
 
class  LocalNanojanskyErr
 
class  LocalPhotometry
 
class  LocalWcs
 
class  Mag
 
class  MagDiff
 
class  MagErr
 
class  MomentsBase
 
class  MomentsG1Sky
 
class  MomentsG2Sky
 
class  MomentsIuuSky
 
class  MomentsIuvSky
 
class  MomentsIvvSky
 
class  MomentsTraceSky
 
class  MultibandColumn
 
class  MultibandSinglePrecisionFloatColumn
 
class  NanoJansky
 
class  NanoJanskyErr
 
class  Photometry
 
class  PositionAngleFromCorrelation
 
class  PositionAngleFromMoments
 
class  PsfHsmTraceSizeDiff
 
class  PsfSdssTraceSizeDiff
 
class  RAColumn
 
class  RADecCovColumn
 
class  RadiusFromQuadrupole
 
class  RAErrColumn
 
class  ReferenceBand
 
class  SdssTraceSize
 
class  SemimajorAxisFromCorrelation
 
class  SemimajorAxisFromMoments
 
class  SemiminorAxisFromCorrelation
 
class  SemiminorAxisFromMoments
 
class  SinglePrecisionFloatColumn
 

Functions

 init_fromDict (initDict, basePath='lsst.pipe.tasks.functors', typeKey='functor', name=None)
 
 mag_aware_eval (df, expr, log)
 
 fluxName (col)
 
 fluxErrName (col)
 

Function Documentation

◆ fluxErrName()

lsst.pipe.tasks.functors.fluxErrName ( col)
Append _instFluxErr to the column name if it doesn't have it already.

Definition at line 821 of file functors.py.

◆ fluxName()

lsst.pipe.tasks.functors.fluxName ( col)
Append _instFlux to the column name if it doesn't have it already.

Definition at line 814 of file functors.py.

◆ init_fromDict()

lsst.pipe.tasks.functors.init_fromDict ( initDict,
basePath = 'lsst.pipe.tasks.functors',
typeKey = 'functor',
name = None )
Initialize an object defined in a dictionary.

The object needs to be importable as f'{basePath}.{initDict[typeKey]}'.
The positional and keyword arguments (if any) are contained in "args" and
"kwargs" entries in the dictionary, respectively.
This is used in `~lsst.pipe.tasks.functors.CompositeFunctor.from_yaml` to
initialize a composite functor from a specification in a YAML file.

Parameters
----------
initDict : dictionary
    Dictionary describing object's initialization.
    Must contain an entry keyed by ``typeKey`` that is the name of the
    object, relative to ``basePath``.
basePath : str
    Path relative to module in which ``initDict[typeKey]`` is defined.
typeKey : str
    Key of ``initDict`` that is the name of the object (relative to
    ``basePath``).

Definition at line 64 of file functors.py.

◆ mag_aware_eval()

lsst.pipe.tasks.functors.mag_aware_eval ( df,
expr,
log )
Evaluate an expression on a DataFrame, knowing what the 'mag' function
means.

Builds on `pandas.DataFrame.eval`, which parses and executes math on
DataFrames.

Parameters
----------
df : ~pandas.DataFrame
    DataFrame on which to evaluate expression.

expr : str
    Expression.

Definition at line 585 of file functors.py.