![]() |
ATLAS Offline Software
|
Public Member Functions | |
| __init__ (self) | |
| append (self, block) | |
| makeAlgs (self, config) | |
| applyConfigOverrides (self, config) | |
| reorderAlgs (self) | |
| fullConfigure (self, config) | |
| setOptionValue (self, name, value, **kwargs) | |
| printOptions (self, verbose=False) | |
| getOptions (self) | |
| setOptions (self, options) | |
| groupBlocks (self, groupName='') | |
| setFactoryName (self, factoryName) | |
| __iadd__ (self, sequence, index=None) | |
| __iter__ (self) | |
Protected Attributes | |
| list | _blocks = [] |
a sequence of ConfigBlock objects This could in principle just be a simple python list, and maybe we change it to that at some point (10 Mar 22). Having it as its own class allows to implement some helper functions. This implements an interface similar to ConfigBlock, but it doesn't derive from it, as ConfigBlock will likely gain functionality in the future that wouldn't work for a sequence (or wouldn't work in the same way).
Definition at line 28 of file ConfigSequence.py.
| python.ConfigSequence.ConfigSequence.__init__ | ( | self | ) |
Definition at line 42 of file ConfigSequence.py.
| python.ConfigSequence.ConfigSequence.__iadd__ | ( | self, | |
| sequence, | |||
| index = None ) |
Add another sequence to this one This function is used to add another sequence to this sequence using the '+=' operator.
Definition at line 271 of file ConfigSequence.py.
| python.ConfigSequence.ConfigSequence.__iter__ | ( | self | ) |
Create an iterator over all the configurations in this sequence This is to allow for a Python-like iteration over all configuration blocks that are part of the sequence.
Definition at line 288 of file ConfigSequence.py.
| python.ConfigSequence.ConfigSequence.append | ( | self, | |
| block ) |
append a configuration block to the sequence
Definition at line 46 of file ConfigSequence.py.
| python.ConfigSequence.ConfigSequence.applyConfigOverrides | ( | self, | |
| config ) |
Apply any properties that were set in the block's 'propertyOverrides' option.
Definition at line 66 of file ConfigSequence.py.
| python.ConfigSequence.ConfigSequence.fullConfigure | ( | self, | |
| config ) |
do the full configuration on this sequence This sequence needs to be the only sequence, i.e. it needs to contain all the blocks that will be configured, as it will perform all configuration steps at once.
Definition at line 124 of file ConfigSequence.py.
| python.ConfigSequence.ConfigSequence.getOptions | ( | self | ) |
get information on options for last block in sequence
Definition at line 199 of file ConfigSequence.py.
| python.ConfigSequence.ConfigSequence.groupBlocks | ( | self, | |
| groupName = '' ) |
Assigns all blocks in configSequence groupName. If no name is provided, the name is set to group_ plus an integer. Blocks with the same groupName can be configured together.
Definition at line 244 of file ConfigSequence.py.
| python.ConfigSequence.ConfigSequence.makeAlgs | ( | self, | |
| config ) |
call makeAlgs() on all blocks This will create the actual algorithm configurables based on how the blocks are configured right now.
Definition at line 51 of file ConfigSequence.py.
| python.ConfigSequence.ConfigSequence.printOptions | ( | self, | |
| verbose = False ) |
Prints options and their values for each config block in a config sequence
Definition at line 190 of file ConfigSequence.py.
| python.ConfigSequence.ConfigSequence.reorderAlgs | ( | self | ) |
Check for blocks with dependencies. If a block required another block that is not present, will throw an error; Otherwise, will move block immediately after required block. If dependency is not required, will move after other block, if it is present. Note: this implementation can only move blocks forward.
Definition at line 78 of file ConfigSequence.py.
| python.ConfigSequence.ConfigSequence.setFactoryName | ( | self, | |
| factoryName ) |
Set the factory name for all blocks in the sequence. This is used to set a common factory name for all blocks, which can be useful for debugging or logging purposes.
Definition at line 257 of file ConfigSequence.py.
| python.ConfigSequence.ConfigSequence.setOptions | ( | self, | |
| options ) |
Set options for a ConfigBlock
Definition at line 224 of file ConfigSequence.py.
| python.ConfigSequence.ConfigSequence.setOptionValue | ( | self, | |
| name, | |||
| value, | |||
| ** | kwargs ) |
set the given option on the sequence The name should generally be of the form "groupName.optionName" to identify what group the option belongs to. For simplicity I also allow a ".optionName" here, which will then set the property in the last group added. That makes it fairly straightforward to add new blocks, set options on them, and then move on to the next blocks. Please note that this mechanism ought to be viewed as strictly as a temporary convenience, and this short cut may go away once better alternatives are available. WARNING: The backend to option handling is slated to be replaced at some point. This particular function may change behavior, interface or be removed/replaced entirely.
Definition at line 142 of file ConfigSequence.py.
|
protected |
Definition at line 43 of file ConfigSequence.py.