cf.CellMethod.get_axes¶
-
CellMethod.get_axes(default=ValueError())[source]¶ Return the axes of the cell method.
New in version 1.7.0.
- Parameters
- default: optional
Return the value of the default parameter if axes have not been set. If set to an
Exceptioninstance then it will be raised instead.
- Returns
tupleThe axes.
Examples:
>>> c.set_axes('domainaxis1') >>> c.has_axes() True >>> c.get_axes() ('domainaxis1',) >>> c.del_axes() >>> c.has_axes() False >>> c.get_axes('NO AXES') 'NO AXES' >>> c.del_axes('NO AXES') 'NO AXES'