(self, model)
Remove a model from the state machine. The model will still contain all previously added triggers
        and callbacks, but will not receive updates when states or transitions are added to the Machine.
        If an event queue is used, all queued events of that model will be removed.
Remove a model from the state machine. The model will still contain all previously added triggers
        and callbacks, but will not receive updates when states or transitions are added to the Machine.
        If an event queue is used, all queued events of that model will be removed.
Remove a model from the state machine . The model will still contain all previously added triggers and callbacks but will not receive updates when states or transitions are added to the Machine . If an event queue is used all queued events of that model will be removed .
def remove_model(self, model):
        """ Remove a model from the state machine. The model will still contain all previously added triggers
        and callbacks, but will not receive updates when states or transitions are added to the Machine.
        If an event queue is used, all queued events of that model will be removed."""
        models = listify(model)

        for mod in models:
            self.models.remove(mod)
        if len(self._transition_queue) > 0:
            # the first element of the list is currently executed. Keeping it for further Machine._process(ing)
            self._transition_queue = deque(
                [self._transition_queue[0]] + [e for e in self._transition_queue if e.args[0] not in models])
def remove_model ( self , model ) : models = listify ( model ) for mod in models : self . models . remove ( mod ) if len ( self . _transition_queue ) > 0 : # the first element of the list is currently executed. Keeping it for further Machine._process(ing) self . _transition_queue = deque ( [ self . _transition_queue [ 0 ] ] + [ e for e in self . _transition_queue if e . args [ 0 ] not in models ] )