Or

class hoomd.trigger.Or(triggers)

Bases: Trigger

Boolean or operation.

Parameters:

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

Or returns True when any of the input triggers returns True:

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

Example:

trig = hoomd.trigger.Or([other_trigger1, other_trigger2])

Members inherited from Trigger:

__call__()

Evaluate the trigger. Read more...

compute()

Evaluate the trigger. Read more...


Members defined in Or:

triggers

List of triggers.

Type:

list [Trigger]

__eq__(other)

Test for equivalent triggers.

__reduce__()

Format trigger for pickling.

__str__()

Human readable representation of the trigger as a string.