#NEWLINE# def get_attribute( self , name , value , trait , meta ) : #NEWLINE# #INDENT# "Return the attribute dictionary for this variable. This dict is\n        used by the GUI to populate the edit UI. The basic functionality that\n        most variables need is provided here; you can overload this for\n        special cases, like lists and dictionaries, or custom datatypes.\n\n        name: str\n          Name of variable\n\n        value: object\n          The value of the variable\n\n        trait: CTrait\n          The variable's trait\n\n        meta: dict\n          Dictionary of metadata for this variable\n        " #NEWLINE# ( attr , other ) = super ( Float , self ) . get_attribute ( attr , value , trait , meta ) #NEWLINE# if ( attr [ 'type' ] == 'float64' ) : #NEWLINE# #INDENT# attr [ 'type' ] = 'float' #NEWLINE# attr [ 'value' ] = float ( value ) #NEWLINE# #UNINDENT# return ( attr , other )