![]() |
ATLAS Offline Software
|
Public Member Functions | |
def | __init__ (self) |
def | athHash (self) |
def | __hash__ (self) |
def | __getattr__ (self, name) |
def | __setattr__ (self, name, value) |
def | __delattr__ (self, name) |
def | __getitem__ (self, name) |
def | __setitem__ (self, name, value) |
def | __delitem__ (self, name) |
def | __iter__ (self) |
def | asdict (self) |
def | addFlag (self, name, setDef, type=None, help=None) |
def | addFlagsCategory (self, path, generator, prefix=False) |
def | needFlagsCategory (self, name) |
def | loadAllDynamicFlags (self) |
def | hasCategory (self, name) |
def | hasFlag (self, name) |
def | __call__ (self, name) |
def | lock (self) |
def | locked (self) |
def | clone (self) |
def | cloneAndReplace (self, subsetToReplace, replacementSubset, keepOriginal=False) |
def | join (self, other, prefix='') |
def | dump (self, pattern=".*", evaluate=False, formatStr="{:40} : {}", maxLength=None) |
def | initAll (self) |
def | getArgumentParser (self, **kwargs) |
def | parser (self) |
def | args (self) |
def | fillFromString (self, flag_string) |
def | fillFromArgs (self, listOfArgs=None, parser=None) |
Static Public Attributes | |
print_context | |
Private Member Functions | |
def | _calculateHash (self) |
def | _renamed_map (self) |
def | _subflag_itr (self) |
def | _loadDynaFlags (self, name) |
def | _set (self, name, value) |
def | _get (self, name) |
def | _tryModify (self) |
Private Attributes | |
_flagdict | |
_locked | |
_dynaflags | |
_loaded | |
_categoryCache | |
_hash | |
_parser | |
_args | |
_renames | |
Definition at line 219 of file AthConfigFlags.py.
def python.AthConfigFlags.AthConfigFlags.__init__ | ( | self | ) |
Definition at line 221 of file AthConfigFlags.py.
def python.AthConfigFlags.AthConfigFlags.__call__ | ( | self, | |
name | |||
) |
Definition at line 466 of file AthConfigFlags.py.
def python.AthConfigFlags.AthConfigFlags.__delattr__ | ( | self, | |
name | |||
) |
Definition at line 277 of file AthConfigFlags.py.
def python.AthConfigFlags.AthConfigFlags.__delitem__ | ( | self, | |
name | |||
) |
Definition at line 286 of file AthConfigFlags.py.
def python.AthConfigFlags.AthConfigFlags.__getattr__ | ( | self, | |
name | |||
) |
Definition at line 245 of file AthConfigFlags.py.
def python.AthConfigFlags.AthConfigFlags.__getitem__ | ( | self, | |
name | |||
) |
Definition at line 280 of file AthConfigFlags.py.
def python.AthConfigFlags.AthConfigFlags.__hash__ | ( | self | ) |
Definition at line 239 of file AthConfigFlags.py.
def python.AthConfigFlags.AthConfigFlags.__iter__ | ( | self | ) |
Definition at line 294 of file AthConfigFlags.py.
def python.AthConfigFlags.AthConfigFlags.__setattr__ | ( | self, | |
name, | |||
value | |||
) |
Definition at line 269 of file AthConfigFlags.py.
def python.AthConfigFlags.AthConfigFlags.__setitem__ | ( | self, | |
name, | |||
value | |||
) |
Definition at line 283 of file AthConfigFlags.py.
|
private |
Definition at line 242 of file AthConfigFlags.py.
|
private |
Definition at line 457 of file AthConfigFlags.py.
|
private |
loads the flags of the form "A.B.C" first attempting the path "A" then "A.B" and then "A.B.C"
Definition at line 389 of file AthConfigFlags.py.
|
private |
mapping from the old names to the new names This is the inverse of _renamed, which maps new names to old names Returns a list of the new names corresponding to the old names (since cloneAndReplace may or may not disable access to the old name, it is possible that an old name renames to multiple new names)
Definition at line 315 of file AthConfigFlags.py.
|
private |
Definition at line 448 of file AthConfigFlags.py.
|
private |
Subflag iterator for all flags This is used by the asdict() function.
Definition at line 342 of file AthConfigFlags.py.
|
private |
Definition at line 479 of file AthConfigFlags.py.
def python.AthConfigFlags.AthConfigFlags.addFlag | ( | self, | |
name, | |||
setDef, | |||
type = None , |
|||
help = None |
|||
) |
Definition at line 363 of file AthConfigFlags.py.
def python.AthConfigFlags.AthConfigFlags.addFlagsCategory | ( | self, | |
path, | |||
generator, | |||
prefix = False |
|||
) |
The path is the beginning of the flag name (e.g. "X" for flags generated with name "X.*"). The generator is a function that returns a flags container, the flags have to start with the same path. When the prefix is True the flags created by the generator are prefixed by "path". Supported calls are then: addFlagsCategory("A", g) - where g is function creating flags is f.addFlag("A.x", someValue) addFlagsCategory("A", g, True) - when flags are defined in g like this: f.addFalg("x", somevalue), The latter option allows to share one generator among flags that are later loaded in different paths.
Definition at line 370 of file AthConfigFlags.py.
def python.AthConfigFlags.AthConfigFlags.args | ( | self | ) |
Definition at line 629 of file AthConfigFlags.py.
def python.AthConfigFlags.AthConfigFlags.asdict | ( | self | ) |
Convert to a python dictionary This is identical to the `asdict` in FlagAddress, but for all the flags.
Definition at line 305 of file AthConfigFlags.py.
def python.AthConfigFlags.AthConfigFlags.athHash | ( | self | ) |
Definition at line 232 of file AthConfigFlags.py.
def python.AthConfigFlags.AthConfigFlags.clone | ( | self | ) |
Return an unlocked copy of self (dynamic flags are not loaded)
Definition at line 486 of file AthConfigFlags.py.
def python.AthConfigFlags.AthConfigFlags.cloneAndReplace | ( | self, | |
subsetToReplace, | |||
replacementSubset, | |||
keepOriginal = False |
|||
) |
This is to replace subsets of configuration flags like Example: newflags = flags.cloneAndReplace('Muon', 'Trigger.Offline.Muon')
Definition at line 495 of file AthConfigFlags.py.
def python.AthConfigFlags.AthConfigFlags.dump | ( | self, | |
pattern = ".*" , |
|||
evaluate = False , |
|||
formatStr = "{:40} : {}" , |
|||
maxLength = None |
|||
) |
Definition at line 567 of file AthConfigFlags.py.
def python.AthConfigFlags.AthConfigFlags.fillFromArgs | ( | self, | |
listOfArgs = None , |
|||
parser = None |
|||
) |
Used to set flags from command-line parameters, like flags.fillFromArgs(sys.argv[1:])
Definition at line 674 of file AthConfigFlags.py.
def python.AthConfigFlags.AthConfigFlags.fillFromString | ( | self, | |
flag_string | |||
) |
Fill the flags from a string of type key=value
Definition at line 633 of file AthConfigFlags.py.
def python.AthConfigFlags.AthConfigFlags.getArgumentParser | ( | self, | |
** | kwargs | ||
) |
Scripts calling AthConfigFlags.fillFromArgs can extend this parser, and pass their version to fillFromArgs
Definition at line 614 of file AthConfigFlags.py.
def python.AthConfigFlags.AthConfigFlags.hasCategory | ( | self, | |
name | |||
) |
Definition at line 422 of file AthConfigFlags.py.
def python.AthConfigFlags.AthConfigFlags.hasFlag | ( | self, | |
name | |||
) |
Definition at line 445 of file AthConfigFlags.py.
def python.AthConfigFlags.AthConfigFlags.initAll | ( | self | ) |
Mostly a self-test method
Definition at line 605 of file AthConfigFlags.py.
def python.AthConfigFlags.AthConfigFlags.join | ( | self, | |
other, | |||
prefix = '' |
|||
) |
Merges two flag containers When the prefix is passed each flag from the "other" is prefixed by "prefix."
Definition at line 546 of file AthConfigFlags.py.
def python.AthConfigFlags.AthConfigFlags.loadAllDynamicFlags | ( | self | ) |
Force load all the dynamic flags
Definition at line 415 of file AthConfigFlags.py.
def python.AthConfigFlags.AthConfigFlags.lock | ( | self | ) |
Definition at line 469 of file AthConfigFlags.py.
def python.AthConfigFlags.AthConfigFlags.locked | ( | self | ) |
Definition at line 476 of file AthConfigFlags.py.
def python.AthConfigFlags.AthConfigFlags.needFlagsCategory | ( | self, | |
name | |||
) |
public interface for _loadDynaFlags
Definition at line 385 of file AthConfigFlags.py.
def python.AthConfigFlags.AthConfigFlags.parser | ( | self | ) |
Definition at line 625 of file AthConfigFlags.py.
|
private |
Definition at line 229 of file AthConfigFlags.py.
|
private |
Definition at line 226 of file AthConfigFlags.py.
|
private |
Definition at line 224 of file AthConfigFlags.py.
|
private |
Definition at line 222 of file AthConfigFlags.py.
|
private |
Definition at line 227 of file AthConfigFlags.py.
|
private |
Definition at line 225 of file AthConfigFlags.py.
|
private |
Definition at line 223 of file AthConfigFlags.py.
|
private |
Definition at line 228 of file AthConfigFlags.py.
|
private |
Definition at line 230 of file AthConfigFlags.py.
|
static |
Definition at line 465 of file AthConfigFlags.py.