(self, event)
Process event depending on if the event is significant for the
        searched event sequence.

        Event is significant if it matches the current event in the event_seq
        or if in the timeline it is between two consistent events from the
        event_seq.

        Args:
            event: Event to process.
Process event depending on if the event is significant for the
        searched event sequence.
Process event depending on if the event is significant for the searched event sequence .
def process_event(self, event):
        """Process event depending on if the event is significant for the
        searched event sequence.

        Event is significant if it matches the current event in the event_seq
        or if in the timeline it is between two consistent events from the
        event_seq.

        Args:
            event: Event to process.
        """
        if self.match_event(event):
            self.recording = True
            self.event_storage.append(event)
            self.num_event_to_find += 1

            if self.num_event_to_find == len(self.event_seq):
                self.flush_events()
            return

        if self.recording:
            self.event_storage.append(event)
def process_event ( self , event ) : if self . match_event ( event ) : self . recording = True self . event_storage . append ( event ) self . num_event_to_find += 1 if self . num_event_to_find == len ( self . event_seq ) : self . flush_events ( ) return if self . recording : self . event_storage . append ( event )