simpeg.utils.deprecate_property#

simpeg.utils.deprecate_property(prop, old_name, new_name=None, removal_version=None, future_warn=False, error=False)[source]#

Deprecate property

Parameters:
propproperty

Current property

old_namestr

Original name for the now deprecated property

new_namestr, optional

New name for the property. If None, the property name is take from the prop input argument.

removal_versionstr, optional

SimPEG version in which the property will be removed from the code base

future_warnbool, default: False

If True, throw comprehensive warning the property will be deprecated

errorbool, default: False

Throw error if deprecated property no longer implemented

Returns:
property

The new property