cf.regrid_logging

cf.regrid_logging(*arg)[source]

Whether or not to enable esmpy regridding logging.

If it is logging is performed after every call to esmpy.

Parameters:
arg: bool or Constant, optional

The new value (either True to enable logging or False to disable it). The default is to not change the current behaviour.

Returns:
Constant

The value prior to the change, or the current value if no new value was specified.

Examples

>>> print(cf.regrid_logging())
False
>>> print(cf.regrid_logging(True))
False
>>> print(cf.regrid_logging())
True
>>> with cf.regrid_logging(False):
...     print(cf.regrid_logging())
...
False
>>> print(cf.regrid_logging())
True