(self, drop=False)
Annotates or clears events in event_storage according to the flag
        drop and resets session recording state.

        Args:
            drop: If True, the stored events will not be committed to the
                database.
Annotates or clears events in event_storage according to the flag
        drop and resets session recording state.
Annotates or clears events in event_storage according to the flag drop and resets session recording state .
def flush_events(self, drop=False):
        """Annotates or clears events in event_storage according to the flag
        drop and resets session recording state.

        Args:
            drop: If True, the stored events will not be committed to the
                database.
        """
        if not drop:
            self.session_num += 1
            for event in self.event_storage:
                self.annotateEvent(event, self.session_num)

        self.recording = False
        self.num_event_to_find = 0
        self.event_storage = []
def flush_events ( self , drop = False ) : if not drop : self . session_num += 1 for event in self . event_storage : self . annotateEvent ( event , self . session_num ) self . recording = False self . num_event_to_find = 0 self . event_storage = [ ]