|
lsst.pipe.tasks gcf790cdeb6+f6e4da7c1c
|
Functions | |
| init_fromDict (initDict, basePath='lsst.pipe.tasks.functors', typeKey='functor', name=None) | |
| mag_aware_eval (df, expr, log) | |
| fluxName (col) | |
| fluxErrName (col) | |
| 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.
| 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.
| 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.
| 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.