cfdm.CellMethod.get_axes

CellMethod.get_axes(default=ValueError())[source]

Return the axes of the cell method.

New in version (cfdm): 1.7.0

Parameters
default: optional

Return the value of the default parameter if axes have not been set.

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

Returns
tuple

The axes.

Examples

>>> c = cfdm.CellMethod()
>>> c.set_axes('domainaxis1')
>>> c.has_axes()
True
>>> c.get_axes()
('domainaxis1',)
>>> c.del_axes()
('domainaxis1',)
>>> c.has_axes()
False
>>> c.get_axes('NO AXES')
'NO AXES'
>>> c.del_axes('NO AXES')
'NO AXES'