skbio.util.deprecated#
- skbio.util.deprecated(ver, msg=None, append=True)[source]#
Mark a function or a method as deprecated.
- Parameters:
- verstr
Version when deprecation became effective.
- msgstr, optional
A custom warning message.
- appendbool, optional
Append the custom message to the end of the default message (True, default), or replace the entire default message with the custom message (False).
Notes
This decorator has two effects: 1) A note will be added to the docstring of the function below the title line to indicate the deprecated status. 2) When the function is called at the first time, a deprecation warning will be displayed.