cfdm.core.FieldAncillary.get_property¶
-
FieldAncillary.
get_property
(prop, default=ValueError())[source]¶ Return a property.
New in version (cfdm): 1.7.0
See also
- Parameters
- Returns
The value of the property.
Examples
>>> f = cfdm.core.FieldAncillary() >>> f.set_property('project', 'CMIP7') >>> f.has_property('project') True >>> f.get_property('project') 'CMIP7' >>> f.del_property('project') 'CMIP7' >>> f.has_property('project') False >>> print(f.del_property('project', None)) None >>> print(f.get_property('project', None)) None