#NEWLINE# def add_iteration( self , iteration ) : #NEWLINE# #INDENT# for ( name , value ) in self . _map_iteration_values ( iteration ) : #NEWLINE# #INDENT# if ( name not in self . _data ) : #NEWLINE# #INDENT# raise KeyError ( ( 'Unexpected histogram name: %s' % name ) ) #NEWLINE# #UNINDENT# for ( i , view ) in enumerate ( self . _data [ name ] [ 'views' ] ) : #NEWLINE# #INDENT# for ( bin_i , bin_v ) in enumerate ( view [ 'x' ] ) : #NEWLINE# #INDENT# if ( ( value or 0 ) <= bin_v ) : #NEWLINE# #INDENT# self . _data [ name ] [ 'views' ] [ i ] [ 'y' ] [ bin_i ] += 1 #NEWLINE# break