deprecate#
Deprecate Arguments.
Functions:
|
Deprecate multiple arguments (possibly grouped) and automatically replace them with new ones. |
|
Decorator to mark a function as deprecated. |
- ansys.fluent.core.utils.deprecate.deprecate_arguments(old_args, new_args, version, converter=None, warning_cls=<class 'ansys.fluent.core.pyfluent_warnings.PyFluentDeprecationWarning'>)#
Deprecate multiple arguments (possibly grouped) and automatically replace them with new ones.
- Parameters:
- old_args
str|list[str] Old argument name(s) to deprecate.
- new_args
str|list[str] New argument name(s) to use instead.
- version
str The version in which the arguments were deprecated.
- converter
callable(),optional Custom converter function taking (kwargs, old_args, new_args) and returning modified kwargs. If not provided, a default converter is used.
- warning_cls
warnings,optional The warning class to use for deprecation warnings.
- old_args
- Returns:
CallableThe decorated function.
- Raises:
ValueErrorFor arguments mismatch.
- ansys.fluent.core.utils.deprecate.deprecate_function(version, new_func=None, warning_cls=<class 'ansys.fluent.core.pyfluent_warnings.PyFluentDeprecationWarning'>)#
Decorator to mark a function as deprecated.