Functions | |
def | addIndex |
def | castorDirExists |
def | getCommandOutput2 |
def | replaceByMap |
— Helpers —############################ More... | |
def | replacelast |
Variables | |
list | fileExtensions = ["_cfg.py", ".sh", ".root"] |
def helperFunctions.addIndex | ( | filename, | |
njobs, | |||
index = None |
|||
) |
Definition at line 86 of file helperFunctions.py.
References replacelast().
Referenced by genericValidation.GenericValidation.createFiles(), genericValidation.GenericValidationData.createScript(), and genericValidation.GenericValidationData.getRepMap().
def helperFunctions.castorDirExists | ( | path | ) |
This function checks if the directory given by `path` exists. Arguments: - `path`: Path to castor directory
Definition at line 59 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 44 of file helperFunctions.py.
Referenced by castorDirExists(), validateAlignments.main(), and validateAlignments.ValidationJob.runJob().
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 5 of file helperFunctions.py.
Referenced by geometryComparison.GeometryComparison.createConfiguration(), validateAlignments.createExtendedValidationScript(), genericValidation.GenericValidation.createFiles(), validateAlignments.createMergeScript(), validateAlignments.createOfflineParJobsMergeScript(), geometryComparison.GeometryComparison.createScript(), validateAlignments.createTrackSplitPlotScript(), alignment.Alignment.getConditions(), and genericValidation.GenericValidationData.getRepMap().
def helperFunctions.replacelast | ( | string, | |
old, | |||
new, | |||
count = 1 |
|||
) |
Replace the last occurances of a string
Definition at line 80 of file helperFunctions.py.
Referenced by addIndex().
list helperFunctions.fileExtensions = ["_cfg.py", ".sh", ".root"] |
Definition at line 84 of file helperFunctions.py.