alphatwirl.selection.modules.LambdaStr.LambdaStr¶
-
class
alphatwirl.selection.modules.LambdaStr.
LambdaStr
(lambda_str, name=None)[source]¶ select events to which a lambda returns True.
A lambda should be given as a string to
__init__
and will be evaluated inbegin()
. This is because a lambda is not picklable.In the multiprocessing mode,
__init__()
is called in the main process. Then, the instance will be pickled and sent to subprocesses.begin()
will be called in the subprocesses.-
__init__
(lambda_str, name=None)[source]¶ Initialize self. See help(type(self)) for accurate signature.
Methods
__init__
(lambda_str[, name])Initialize self. begin
(event)end
()event
(event)-