#NEWLINE# @ distance . setter #NEWLINE# def distance( self , value ) : #NEWLINE# #INDENT# if ( ( value is None ) or ( np . isscalar ( value ) and np . isreal ( value ) ) ) : #NEWLINE# #INDENT# self . _distance = value #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise ValueError ( 'distance should be a real scalar value' )