And

class hoomd.trigger.And(triggers)

Bases: Trigger

Boolean and operation.

Parameters:

triggers (list [Trigger]) – List of triggers.

And returns True when all the input triggers returns True:

return all([f(t) for f in triggers])

Example:

trigger = hoomd.trigger.And([other_trigger1, other_trigger2])

Members inherited from Trigger:

__call__()

Evaluate the trigger. Read more...

compute()

Evaluate the trigger. Read more...


Members defined in And:

triggers

List of triggers.

Type:

list[hoomd.trigger.Trigger]

__eq__(other)

Test for equivalent triggers.

__reduce__()

Format trigger for pickling.

__str__()

Human readable representation of the trigger as a string.