#NEWLINE# def _fill_intervals( self , intervals ) : #NEWLINE# #INDENT# self . intervals = [ PlotInterval ( v_used ) for i in self . intervals ] #NEWLINE# v_used = [ ] #NEWLINE# for i in range ( len ( intervals ) ) : #NEWLINE# #INDENT# self . intervals [ i ] . fill_from ( intervals [ i ] ) #NEWLINE# if ( self . intervals [ i ] . v is not None ) : #NEWLINE# #INDENT# v_used . append ( self . intervals [ i ] . v ) #NEWLINE# #UNINDENT# #UNINDENT# for i in range ( len ( self . intervals ) ) : #NEWLINE# #INDENT# if ( self . intervals [ i ] . v is None ) : #NEWLINE# #INDENT# u = [ v for v in self . i_vars if ( v not in v_used ) ] #NEWLINE# if ( len ( u ) == 0 ) : #NEWLINE# #INDENT# raise ValueError ( 'length should not be equal to 0' ) #NEWLINE# #UNINDENT# self . intervals [ i ] . v = u [ 0 ] #NEWLINE# v_used . append ( u [ 0 ] )