pympi/Elan.py
def generate_annotation_id(self):
        """Generate the next annotation id, this function is mainly used
        internally.
        """
        if not self.maxaid:
            valid_anns = [int(''.join(filter(str.isdigit, a)))
                          for a in self.timeslots]
            self.maxaid = max(valid_anns + [1])+1
        else:
            self.maxaid += 1
        return 'a{:d}'.format(self.maxaid)
def generate_annotation_id(self):
        if not self.maxaid:
            valid_anns = [int(''.join(filter(str.isdigit, a)))
                          for a in self.timeslots]
            self.maxaid = max(valid_anns + [1])+1
        else:
            self.maxaid += 1
        return 'a{:d}'.format(self.maxaid)
def generate_annotation_id ( self ) : if not self . maxaid : valid_anns = [ int ( '' . join ( filter ( str . isdigit , a ) ) ) for a in self . timeslots ] self . maxaid = max ( valid_anns + [ 1 ] ) + 1 else : self . maxaid += 1 return 'a{:d}' . format ( self . maxaid )
Generate the next annotation id, this function is mainly used
        internally.
Generate the next annotation id this function is mainly used internally .