#NEWLINE# def __repr__( self ) : #NEWLINE# #INDENT# s = '' #NEWLINE# if ( 'start' in self ) : #NEWLINE# #INDENT# s += ( 'start: %0.3f (s)' % self [ 'start' ] ) #NEWLINE# #UNINDENT# if ( 'stop' in self ) : #NEWLINE# #INDENT# s += ( ', stop: %0.3f (s)' % self [ 'stop' ] ) #NEWLINE# #UNINDENT# if ( 'step' in self ) : #NEWLINE# #INDENT# s += ( ', step: %0.3f (s)' % self [ 'step' ] ) #NEWLINE# #UNINDENT# if ( 'length' in self ) : #NEWLINE# #INDENT# s += ( ', length: %0.3f (s)' % self [ 'length' ] ) #NEWLINE# #UNINDENT# if ( 'slices' in self ) : #NEWLINE# #INDENT# depth = [ len ( ii ) for ii in self [ 'slices' ] ] #NEWLINE# if ( len ( np . unique ( depth ) ) == 1 ) : #NEWLINE# #INDENT# if ( depth [ 0 ] == 1 ) : #NEWLINE# #INDENT# s += ( ', n_time_windows: %s' % len ( depth ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# s += ( ', n_time_windows: %s x %s' % ( len ( depth ) , depth [ 0 ] ) ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# s += ( ', n_time_windows: %s x [%s, %s]' % ( len ( depth ) , min ( [ len ( ii ) for ii in depth ] ) , max ( [ len ( ii ) for ii in depth ] ) ) ) #NEWLINE# #UNINDENT# #UNINDENT# return ( '<DecodingTime | %s>' % s )