feature_extraction/ft_descriptor.py
def adjust_list_lengths(self):
        """
        Validate label list length. Truncate or extend if necessary.
        :return:
        """
        if self.frames:
            if len(self.label_list) > len(self.frames):
                del self.label_list[len(self.frames):]
            elif len(self.label_list) < len(self.frames):
                last_elem = self.label_list[-1]
                while len(self.label_list) < len(self.frames):
                    self.label_list.append(last_elem)
            self.discard_obsolete_frames()

        Validate label list length. Truncate or extend if necessary.
        :return:
        
Validate label list length. Truncate or extend if necessary.
Validate label list length . Truncate or extend if necessary .
def adjust_list_lengths(self):
        if self.frames:
            if len(self.label_list) > len(self.frames):
                del self.label_list[len(self.frames):]
            elif len(self.label_list) < len(self.frames):
                last_elem = self.label_list[-1]
                while len(self.label_list) < len(self.frames):
                    self.label_list.append(last_elem)
            self.discard_obsolete_frames()
def adjust_list_lengths ( self ) : if self . frames : if len ( self . label_list ) > len ( self . frames ) : del self . label_list [ len ( self . frames ) : ] elif len ( self . label_list ) < len ( self . frames ) : last_elem = self . label_list [ - 1 ] while len ( self . label_list ) < len ( self . frames ) : self . label_list . append ( last_elem ) self . discard_obsolete_frames ( )
Validate label list length.
Validate label list length .
"""
        Validate label list length. Truncate or extend if necessary.
        :return:
        """
None
self