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

Classes

class  ConfigSequence

Functions

 groupBlocks (func)

Variables

 logCPAlgCfgSeq = logging.getLogger('CPAlgCfgSeq')

Function Documentation

◆ groupBlocks()

python.ConfigSequence.groupBlocks ( func)
Decorates a configSequence or function with 'seq' as a
arguement.

Sets groupName to the name of the decorated funtion  or
calss plus and integer for each ConfigBlock in the configSequence.

Blocks with the same groupName can be configured together.

Definition at line 11 of file ConfigSequence.py.

11def groupBlocks(func):
12 """
13 Decorates a configSequence or function with 'seq' as a
14 arguement.
15
16 Sets groupName to the name of the decorated funtion or
17 calss plus and integer for each ConfigBlock in the configSequence.
18
19 Blocks with the same groupName can be configured together.
20 """
21 @wraps(func)
22 def wrapper(**kwargs):
23 func(**kwargs)
24 groupName = f"{func.__name__}_{randrange(10**8):08}"
25 for block in kwargs['seq']:
26 block.setOptionValue('groupName', groupName)
27 return wrapper
28

Variable Documentation

◆ logCPAlgCfgSeq

python.ConfigSequence.logCPAlgCfgSeq = logging.getLogger('CPAlgCfgSeq')

Definition at line 5 of file ConfigSequence.py.