|
lsst.pipe.tasks g2c8cee2ce7+363d2db7ea
|
Classes | |
| class | ExpressionParser |
Functions | |
| Type[DataFrameAction] | makeColumnExpressionAction (str className, str expr, Optional[Mapping[str, Union[DataFrameAction, Type[DataFrameAction]]]] exprDefaults=None, str docstring=None) |
Variables | |
| dict | OPERATORS |
| dict | EXTRA_MATH = {"cos": cos, "sin": sin, "cosh": cosh, "sinh": sinh, "log": log} |
| Type[DataFrameAction] makeColumnExpressionAction | ( | str | className, |
| str | expr, | ||
| Optional[Mapping[str, Union[DataFrameAction, Type[DataFrameAction]]]] | exprDefaults = None, | ||
| str | docstring = None ) |
Factory function for producing ConfigurableAction classes which are
realizations of arithmetic operations.
Parameters
----------
className : `str`
The name of the class that will be produced
expr : `str`
An arithmetic expression that will be parsed to produce the output
ConfigurableAction. Individual variable names will be the name of
individual `ConfigActions` inside the expression (i.e. "x+y" will
produce an action with configAction.actions.x and
configAction.actions.y). Expression can contain arithmatic python
operators as well as; sin, cos, sinh, cosh, log (which is base 10).
exprDefaults : `Mapping` of `str` to `DataFrameAction` optional
A mapping of strings which correspond to the names in the expression to
values which are default `ConfigurableActions` to assign in the
expression. If no default for a action is supplied `SingleColumnAction`
is set as the default.
docstring : `str`
A string that is assigned as the resulting classes docstring
Returns
-------
action : `Type` of `DataFrameAction`
A `DataFrameAction` class that was programatically constructed from the
input expression.
Definition at line 83 of file _evalColumnExpression.py.
| dict lsst.pipe.tasks.dataFrameActions._evalColumnExpression.EXTRA_MATH = {"cos": cos, "sin": sin, "cosh": cosh, "sinh": sinh, "log": log} |
Definition at line 43 of file _evalColumnExpression.py.
| dict lsst.pipe.tasks.dataFrameActions._evalColumnExpression.OPERATORS |
Definition at line 39 of file _evalColumnExpression.py.