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

Classes

class  ExpertModeWarning
class  AnalysisWarning
class  ElectronEfficiencyCorrelationWarning
class  VGammaORSkipWarning
class  Run4FallbackWarning
class  GeneratorWeightWarning
class  TestingOnlyWarning
class  Run2OnlyFeatureWarning
class  JetUncertaintyWarning
class  TriggerSFWarning
class  ConfigDeprecationWarning
class  DataType
class  SelectionConfig
class  OutputConfig
class  ContainerConfig
class  ConfigAccumulator

Functions

 deprecated (str reason="")

Variables

 deprecationWarningCategory = FutureWarning
 _algPostfixExpr = re.compile ('^[_a-zA-Z0-9]*$')

Function Documentation

◆ deprecated()

deprecated ( str reason = "")

Definition at line 19 of file ConfigAccumulator.py.

19def deprecated(reason: str = ""):
20 def decorator(func):
21 message = f"{func.__qualname__} is deprecated."
22 if reason:
23 message += " " + reason
24
25 @functools.wraps(func)
26 def wrapper(*args, **kwargs):
27 warnings.warn(
28 message,
29 category=deprecationWarningCategory,
30 stacklevel=2,
31 )
32 return func(*args, **kwargs)
33
34 return wrapper
35 return decorator
36

Variable Documentation

◆ _algPostfixExpr

python.ConfigAccumulator._algPostfixExpr = re.compile ('^[_a-zA-Z0-9]*$')
protected

Definition at line 95 of file ConfigAccumulator.py.

◆ deprecationWarningCategory

python.ConfigAccumulator.deprecationWarningCategory = FutureWarning

Definition at line 18 of file ConfigAccumulator.py.