ATLAS Offline Software
Loading...
Searching...
No Matches
python.ConfigAccumulator Namespace Reference

Classes

class  ConfigAccumulator
class  ContainerConfig
class  DataType
class  ExpertModeWarning
class  OutputConfig
class  SelectionConfig

Functions

 deprecated (str reason="")

Variables

 deprecationWarningCategory = FutureWarning

Function Documentation

◆ deprecated()

python.ConfigAccumulator.deprecated ( str reason = "")

Definition at line 13 of file ConfigAccumulator.py.

13def deprecated(reason: str = ""):
14 def decorator(func):
15 message = f"{func.__qualname__} is deprecated."
16 if reason:
17 message += " " + reason
18
19 @functools.wraps(func)
20 def wrapper(*args, **kwargs):
21 warnings.warn(
22 message,
23 category=deprecationWarningCategory,
24 stacklevel=2,
25 )
26 return func(*args, **kwargs)
27
28 return wrapper
29 return decorator
30

Variable Documentation

◆ deprecationWarningCategory

python.ConfigAccumulator.deprecationWarningCategory = FutureWarning

Definition at line 12 of file ConfigAccumulator.py.