cfdm.CellMeasure.del_measure

CellMeasure.del_measure(default=ValueError())[source]

Remove the measure.

New in version (cfdm): 1.7.0

Parameters
default: optional

Return the value of the default parameter if the measure has not been set.

If set to an Exception instance then it will be raised instead.

Returns

The removed measure.

Examples

>>> c = cfdm.CellMeasure()
>>> c.set_measure('area')
>>> c.has_measure()
True
>>> c.get_measure()
'area'
>>> c.del_measure()
'area'
>>> c.has_measure()
False
>>> print(c.del_measure(None))
None
>>> print(c.get_measure(None))
None