Return the variable’s identity.
The idendity is the value of the standard_name property or, if that does not exist, the id attribute.
Parameters : |
|
---|---|
Returns : |
|
Examples
>>> f.standard_name = 'Kelvin'
>>> f.identity
'Kelvin'
>>> del f.standard_name
>>> f.id = 'foo'
>>> f.identity
'foo'
>>> del f.id
>>> f.identity()
None
>>> f.identity('bar')
'bar'