ExpressionEngine#

class ctapipe.core.ExpressionEngine(expressions)[source]#

Bases: object

Compile expressions on init, evaluate on call.

The expressions are evaluated as python code in the context that is passed. Additionally, astropy.units is exposed as u and numpy as np.

Basic mathematical functions are also exposed without the np prefix.

Methods Summary

__call__(locals)

Call self as a function.

Methods Documentation

__call__(locals)[source]#

Call self as a function.