set_default_inplace#

pypillometry.set_default_inplace(inplace)[source]#

Set the package-level default for inplace.

The setting is used by all methods called with inplace=None (the default) on objects that were created with inplace=None (the default). An inplace value given to the constructor or to a method overrides it.

Parameters:

inplace (bool) – if True (the initial default), methods change the object in place and return it; if False, they work on and return a copy

Return type:

None

Examples

>>> import pypillometry as pp
>>> pp.set_default_inplace(False)  # methods now return modified copies
>>> pp.get_default_inplace()
False
>>> pp.set_default_inplace(True)