Functions | |
def | addIndex |
def | castorDirExists |
def | getCommandOutput2 |
def | parsecolor |
def | parsestyle |
def | replaceByMap |
— Helpers —############################ More... | |
def | replacelast |
Variables | |
list | fileExtensions = ["_cfg.py", ".sh", ".root"] |
def helperFunctions.addIndex | ( | filename, | |
njobs, | |||
index = None |
|||
) |
Definition at line 87 of file helperFunctions.py.
References replacelast().
def helperFunctions.castorDirExists | ( | path | ) |
This function checks if the directory given by `path` exists. Arguments: - `path`: Path to castor directory
Definition at line 60 of file helperFunctions.py.
References getCommandOutput2().
def helperFunctions.getCommandOutput2 | ( | command | ) |
This function executes `command` and returns it output. Arguments: - `command`: Shell command to be invoked by this function.
Definition at line 45 of file helperFunctions.py.
Referenced by castorDirExists().
def helperFunctions.parsecolor | ( | color | ) |
Definition at line 102 of file helperFunctions.py.
def helperFunctions.parsestyle | ( | style | ) |
Definition at line 129 of file helperFunctions.py.
def helperFunctions.replaceByMap | ( | target, | |
the_map | |||
) |
— Helpers —############################
This function replaces `.oO[key]Oo.` by `the_map[key]` in target. Arguments: - `target`: String which contains symbolic tags of the form `.oO[key]Oo.` - `the_map`: Dictionary which has to contain the `key`s in `target` as keys
Definition at line 6 of file helperFunctions.py.
Referenced by zMuMuValidation.ZMuMuValidation.appendToExtendedValidation(), and zMuMuValidation.ZMuMuValidation.createConfiguration().
def helperFunctions.replacelast | ( | string, | |
old, | |||
new, | |||
count = 1 |
|||
) |
Replace the last occurances of a string
Definition at line 81 of file helperFunctions.py.
Referenced by addIndex().
list helperFunctions.fileExtensions = ["_cfg.py", ".sh", ".root"] |
Definition at line 85 of file helperFunctions.py.