cfdm.core.CellMethod.del_method¶
-
CellMethod.
del_method
(default=ValueError())[source]¶ Remove the method of the cell method.
New in version (cfdm): 1.7.0
See also
- Parameters
- default: optional
Return the value of the default parameter if the method has not been set.
If set to an
Exception
instance then it will be raised instead.
- Returns
str
The removed method.
Examples
>>> c = cfdm.core.CellMethod() >>> c.set_method('minimum') >>> c.has_method() True >>> c.get_method() ('time',) >>> c.del_method() >>> c.has_method() False >>> c.get_method('NO METHOD') 'NO METHOD' >>> c.del_method('NO METHOD') 'NO METHOD'