parameters: (trigger)
docstring: Process triggers.
  
      Convert integers to periodic triggers.
docstring_summary: Process triggers.
docstring_tokens: Process triggers .
function: def trigger_preprocessing(trigger):
      """Process triggers.
  
      Convert integers to periodic triggers.
      """
      if isinstance(trigger, Trigger):
          return trigger
      else:
          try:
              return Periodic(period=int(trigger), phase=0)
          except Exception:
              raise ValueError("Expected a hoomd.trigger.Trigger or int object.")
function_tokens: def trigger_preprocessing ( trigger ) : if isinstance ( trigger , Trigger ) : return trigger else : try : return Periodic ( period = int ( trigger ) , phase = 0 ) except Exception : raise ValueError ( "Expected a hoomd.trigger.Trigger or int object." )