cfdm.CellMeasure.set_property¶
-
CellMeasure.
set_property
(prop, value, copy=True)[source]¶ Set a property.
New in version (cfdm): 1.7.0
See also
del_property
,get_property
,has_property
,properties
,set_properties
- Parameters
- Returns
Examples
>>> f = cfdm.CellMeasure() >>> 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