![]() |
ATLAS Offline Software
|
Classes | |
| class | TextConfig |
| class | TextConfigWarning |
Functions | |
| def | readYaml (yamlPath) |
| def | printYaml (d, sort=False, jsonFormat=False) |
| def | makeSequence (configPath, *flags=None, algSeq=None, noSystematics=None, dataType=None, geometry=None, autoconfigFromFlags=None, isPhyslite=None, noPhysliteBroken=False) |
| def | combineConfigFiles (local, config_path, fragment_key="include") |
| def | _load_fragment (pathlib.Path fragment_path) |
| def | _find_fragment (fragment_path, config_path) |
| def | _merge_dicts (local, fragment) |
Variables | |
| logCPAlgTextCfg = logging.getLogger('CPAlgTextCfg') | |
|
private |
Definition at line 459 of file ConfigText.py.
|
private |
Load a YAML or JSON fragment This function is superfluous as of the yaml 1.2 spec (which has not been implemented in ATLAS Yaml dependencies). Once https://github.com/yaml/pyyaml/issues/173 is resolved pyyaml will support yaml 1.2, which is compatable with json. Until then yaml and json behave differently in some scientific notation edge cases.
Definition at line 442 of file ConfigText.py.
|
private |
Definition at line 472 of file ConfigText.py.
| def python.ConfigText.combineConfigFiles | ( | local, | |
| config_path, | |||
fragment_key = "include" |
|||
| ) |
Recursively combine configuration fragments into `local`. - Looks for `fragment_key` at any dict node. - If value is a string/path: merge that fragment. - If value is a list: merge all fragments in order. For conflicts between fragments, the **earlier** file in the list wins. Local keys still override the merged fragments. Returns True if any merging happened below this node.
Definition at line 373 of file ConfigText.py.
| def python.ConfigText.makeSequence | ( | configPath, | |
| * | flags = None, |
||
algSeq = None, |
|||
noSystematics = None, |
|||
dataType = None, |
|||
geometry = None, |
|||
autoconfigFromFlags = None, |
|||
isPhyslite = None, |
|||
noPhysliteBroken = False |
|||
| ) |
Definition at line 321 of file ConfigText.py.
Prints a dictionary as YAML
Definition at line 30 of file ConfigText.py.
| def python.ConfigText.readYaml | ( | yamlPath | ) |
Loads YAML file into a dictionary
Definition at line 21 of file ConfigText.py.
| python.ConfigText.logCPAlgTextCfg = logging.getLogger('CPAlgTextCfg') |
Definition at line 18 of file ConfigText.py.
1.8.18