biogeme.deprecated module

Decorators for deprecated functions and parameters

Michel Bierlaire Mon Jun 17 20:50:19 2024

biogeme.deprecated.deprecated(new_func)[source]

Decorator for deprecated functions. It calls the new version of the function

Parameters:

new_func (Callable[..., Any])

Return type:

Callable[[Callable[..., Any]], Callable[..., Any]]

Returns:

biogeme.deprecated.deprecated_parameters(obsolete_params)[source]
Parameters:

obsolete_params (dict[str, str | None])

biogeme.deprecated.issue_deprecation_warning(text)[source]
Return type:

None

Parameters:

text (str)