
from hoomd import _hoomd

class Trigger(_hoomd.Trigger):
    pass

class PeriodicTrigger(_hoomd.PeriodicTrigger):
    def __init__(self, period, phase=0):
        _hoomd.PeriodicTrigger.__init__(self, period, phase)


from hoomd import _hoomd


class Trigger(_hoomd.Trigger):
    pass


class PeriodicTrigger(_hoomd.PeriodicTrigger, Trigger):
    def __init__(self, period, phase=0):
        _hoomd.PeriodicTrigger.__init__(self, period, phase)

Make ``PeriodicTrigger`` inherent from ``Trigger``
Make ``PeriodicTrigger`` inherent from ``Trigger``

Fixes bug in checking state and preprocessing ``Triggers`` for duck
typing.

  
  from hoomd import _hoomd
+ 
  
  class Trigger(_hoomd.Trigger):
      pass
  
+ 
- class PeriodicTrigger(_hoomd.PeriodicTrigger):
+ class PeriodicTrigger(_hoomd.PeriodicTrigger, Trigger):
      def __init__(self, period, phase=0):
          _hoomd.PeriodicTrigger.__init__(self, period, phase)
  
Make ``PeriodicTrigger`` inherent from ``Trigger``
## Code Before:

from hoomd import _hoomd

class Trigger(_hoomd.Trigger):
    pass

class PeriodicTrigger(_hoomd.PeriodicTrigger):
    def __init__(self, period, phase=0):
        _hoomd.PeriodicTrigger.__init__(self, period, phase)

## Instruction:
Make ``PeriodicTrigger`` inherent from ``Trigger``
## Code After:

from hoomd import _hoomd


class Trigger(_hoomd.Trigger):
    pass


class PeriodicTrigger(_hoomd.PeriodicTrigger, Trigger):
    def __init__(self, period, phase=0):
        _hoomd.PeriodicTrigger.__init__(self, period, phase)
