decorators#
Module containing decorators and utility functions for Pastas models.
Includes decorators for caching, configuring global settings, deprecation warnings, and other convenient methods for handling time, numba compiled code, etc.
Functions#
|
Enable or disable the use of Numba JIT compilation. |
|
Check if Numba JIT compilation is enabled. |
|
Enable or disable the use of caching with cachetools. |
|
Check if caching with cachetools is enabled. |
|
Validate and set parameter values. |
|
Validate and retrieve stressmodel by name. |
|
Use model tmin and tmax settings as default values. |
|
Provide a warning or error when a Pastas class, method or function is deprecated. |
|
Provide a warning or error when a function argument is deprecated. |
|
Apply numba's njit to a function if numba is available. |
|
Use deprecated latexify functionality. |
|
Conditionally cache a method using cachetools.cachedmethod. |
Context manager to temporarily disable caching. |
|
Context manager to temporarily enable caching. |