cf.CellMeasure.set_measure

CellMeasure.set_measure(measure, copy=True)[source]

Set the measure.

New in version 1.7.0.

Parameters:
measure: str

The value for the measure.

copy: bool, optional

If True then set a deep copy of measure.

Returns:

None

Examples:

>>> 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