alphatwirl.selection.modules package

Submodules

alphatwirl.selection.modules.Count module

class alphatwirl.selection.modules.Count.Count[source]

Bases: object

copy()[source]
add(selection)[source]
count(pass_)[source]
increment_depth(by=1)[source]
insert(i, other)[source]
results()[source]
to_tuple_list()[source]

alphatwirl.selection.modules.LambdaStr module

class alphatwirl.selection.modules.LambdaStr.LambdaStr(lambda_str, name=None)[source]

Bases: object

select events to which a lambda returns True.

A lambda should be given as a string to __init__ and will be evaluated in begin(). 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.

begin(event)[source]
event(event)[source]
end()[source]

alphatwirl.selection.modules.basic module

class alphatwirl.selection.modules.basic.All(name=None)[source]

Bases: object

select events that meet all conditions

add(selection)[source]
begin(event)[source]
event(event)[source]
end()[source]
class alphatwirl.selection.modules.basic.Any(name=None)[source]

Bases: object

select events that meet any of the conditions

add(selection)[source]
begin(event)[source]
event(event)[source]
end()[source]
class alphatwirl.selection.modules.basic.Not(selection, name=None)[source]

Bases: object

select events that do NOT pass the selection

begin(event)[source]
event(event)[source]
end()[source]

alphatwirl.selection.modules.with_count module

class alphatwirl.selection.modules.with_count.AllwCount(name=None)[source]

Bases: object

select events that meet all conditions

add(selection)[source]
begin(event)[source]
event(event)[source]
end()[source]
results(increment=False)[source]
class alphatwirl.selection.modules.with_count.AnywCount(name=None)[source]

Bases: object

select events that meet all conditions

add(selection)[source]
begin(event)[source]
event(event)[source]
end()[source]
results(increment=False)[source]
class alphatwirl.selection.modules.with_count.NotwCount(selection, name=None)[source]

Bases: object

select events that do NOT pass the selection

begin(event)[source]
event(event)[source]
end()[source]
results(increment=False)[source]

Module contents