cf.AuxiliaryCoordinate.del_data¶
-
AuxiliaryCoordinate.
del_data
(default=ValueError())[source]¶ Remove the data.
New in version 1.7.0.
- Parameters
- default: optional
Return the value of the default parameter if data have not been set. If set to an
Exception
instance then it will be raised instead.
- Returns
The removed data.
Examples:
>>> d = cfdm.Data(range(10)) >>> f.set_data(d) >>> f.has_data() True >>> f.get_data() <Data(10): [0, ..., 9]> >>> f.del_data() <Data(10): [0, ..., 9]> >>> f.has_data() False >>> print(f.get_data(None)) None >>> print(f.del_data(None)) None