#NEWLINE# def _EncodeItem( self , x ) : #NEWLINE# #INDENT# if ( x is None ) : #NEWLINE# #INDENT# return '_' #NEWLINE# #UNINDENT# x = int ( round ( x ) ) #NEWLINE# if ( ( x < self . min ) or ( x > self . max ) ) : #NEWLINE# #INDENT# return '_' #NEWLINE# #UNINDENT# return self . code [ int ( x ) ]