![]() |
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 | __contains__ (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, return_unknown=False) |
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 | |
Static Private Attributes | |
| list | _hashedFlags = [] |
Definition at line 230 of file AthConfigFlags.py.
| def python.AthConfigFlags.AthConfigFlags.__init__ | ( | self | ) |
Definition at line 237 of file AthConfigFlags.py.
| def python.AthConfigFlags.AthConfigFlags.__call__ | ( | self, | |
| name | |||
| ) |
Definition at line 491 of file AthConfigFlags.py.
| def python.AthConfigFlags.AthConfigFlags.__contains__ | ( | self, | |
| name | |||
| ) |
Definition at line 307 of file AthConfigFlags.py.
| def python.AthConfigFlags.AthConfigFlags.__delattr__ | ( | self, | |
| name | |||
| ) |
Definition at line 290 of file AthConfigFlags.py.
| def python.AthConfigFlags.AthConfigFlags.__delitem__ | ( | self, | |
| name | |||
| ) |
Definition at line 299 of file AthConfigFlags.py.
| def python.AthConfigFlags.AthConfigFlags.__getattr__ | ( | self, | |
| name | |||
| ) |
Definition at line 268 of file AthConfigFlags.py.
| def python.AthConfigFlags.AthConfigFlags.__getitem__ | ( | self, | |
| name | |||
| ) |
Definition at line 293 of file AthConfigFlags.py.
| def python.AthConfigFlags.AthConfigFlags.__hash__ | ( | self | ) |
Definition at line 255 of file AthConfigFlags.py.
| def python.AthConfigFlags.AthConfigFlags.__iter__ | ( | self | ) |
Definition at line 310 of file AthConfigFlags.py.
| def python.AthConfigFlags.AthConfigFlags.__setattr__ | ( | self, | |
| name, | |||
| value | |||
| ) |
Definition at line 282 of file AthConfigFlags.py.
| def python.AthConfigFlags.AthConfigFlags.__setitem__ | ( | self, | |
| name, | |||
| value | |||
| ) |
Definition at line 296 of file AthConfigFlags.py.
|
private |
Definition at line 258 of file AthConfigFlags.py.
|
private |
Definition at line 482 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 403 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 331 of file AthConfigFlags.py.
|
private |
Definition at line 473 of file AthConfigFlags.py.
|
private |
Subflag iterator for all flags This is used by the asdict() function.
Definition at line 356 of file AthConfigFlags.py.
|
private |
Definition at line 504 of file AthConfigFlags.py.
| def python.AthConfigFlags.AthConfigFlags.addFlag | ( | self, | |
| name, | |||
| setDef, | |||
type = None, |
|||
help = None |
|||
| ) |
Definition at line 377 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 384 of file AthConfigFlags.py.
| def python.AthConfigFlags.AthConfigFlags.args | ( | self | ) |
Definition at line 654 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 321 of file AthConfigFlags.py.
| def python.AthConfigFlags.AthConfigFlags.athHash | ( | self | ) |
Definition at line 248 of file AthConfigFlags.py.
| def python.AthConfigFlags.AthConfigFlags.clone | ( | self | ) |
Return an unlocked copy of self (dynamic flags are not loaded)
Definition at line 511 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 520 of file AthConfigFlags.py.
| def python.AthConfigFlags.AthConfigFlags.dump | ( | self, | |
pattern = ".*", |
|||
evaluate = False, |
|||
formatStr = "{:40} : {}", |
|||
maxLength = None |
|||
| ) |
Definition at line 592 of file AthConfigFlags.py.
| def python.AthConfigFlags.AthConfigFlags.fillFromArgs | ( | self, | |
listOfArgs = None, |
|||
parser = None, |
|||
return_unknown = False |
|||
| ) |
Used to set flags from command-line parameters, like flags.fillFromArgs(sys.argv[1:])
if return_unknown=False, returns: args
otherwise returns: args, uknown_args
where unknown_args is the list of arguments that did not correspond to one of the flags
Definition at line 699 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 658 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 639 of file AthConfigFlags.py.
| def python.AthConfigFlags.AthConfigFlags.hasCategory | ( | self, | |
| name | |||
| ) |
Check if category exists (loads dynamic flags if needed)
Definition at line 436 of file AthConfigFlags.py.
| def python.AthConfigFlags.AthConfigFlags.hasFlag | ( | self, | |
| name | |||
| ) |
Check if flag exists (loads dynamic flags if needed)
Definition at line 461 of file AthConfigFlags.py.
| def python.AthConfigFlags.AthConfigFlags.initAll | ( | self | ) |
Mostly a self-test method
Definition at line 630 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 571 of file AthConfigFlags.py.
| def python.AthConfigFlags.AthConfigFlags.loadAllDynamicFlags | ( | self | ) |
Force load all the dynamic flags
Definition at line 429 of file AthConfigFlags.py.
| def python.AthConfigFlags.AthConfigFlags.lock | ( | self | ) |
Definition at line 494 of file AthConfigFlags.py.
| def python.AthConfigFlags.AthConfigFlags.locked | ( | self | ) |
Definition at line 501 of file AthConfigFlags.py.
| def python.AthConfigFlags.AthConfigFlags.needFlagsCategory | ( | self, | |
| name | |||
| ) |
public interface for _loadDynaFlags
Definition at line 399 of file AthConfigFlags.py.
| def python.AthConfigFlags.AthConfigFlags.parser | ( | self | ) |
Definition at line 650 of file AthConfigFlags.py.
|
private |
Definition at line 245 of file AthConfigFlags.py.
|
private |
Definition at line 242 of file AthConfigFlags.py.
|
private |
Definition at line 240 of file AthConfigFlags.py.
|
private |
Definition at line 238 of file AthConfigFlags.py.
|
private |
Definition at line 243 of file AthConfigFlags.py.
|
staticprivate |
Definition at line 235 of file AthConfigFlags.py.
|
private |
Definition at line 241 of file AthConfigFlags.py.
|
private |
Definition at line 239 of file AthConfigFlags.py.
|
private |
Definition at line 244 of file AthConfigFlags.py.
|
private |
Definition at line 246 of file AthConfigFlags.py.
|
static |
Definition at line 490 of file AthConfigFlags.py.
1.8.18