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().
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 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(), geometryComparison.GeometryComparison.createScript(), validateAlignments.main(), and validateAlignments.ValidationJob.runJob().
def helperFunctions.parsecolor | ( | color | ) |
Definition at line 102 of file helperFunctions.py.
Referenced by preexistingValidation.PreexistingValidation.getRepMap().
def helperFunctions.parsestyle | ( | style | ) |
Definition at line 129 of file helperFunctions.py.
Referenced by preexistingValidation.PreexistingValidation.getRepMap().
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(), zMuMuValidation.ZMuMuValidation.createConfiguration(), geometryComparison.GeometryComparison.createConfiguration(), validateAlignments.createExtendedValidationScript(), genericValidation.GenericValidation.createFiles(), validateAlignments.createMergeScript(), validateAlignments.createMergeZmumuPlotsScript(), validateAlignments.createOfflineParJobsMergeScript(), validateAlignments.createPrimaryVertexPlotScript(), geometryComparison.GeometryComparison.createScript(), validateAlignments.createTrackSplitPlotScript(), alignment.Alignment.getConditions(), genericValidation.GenericValidationData.getRepMap(), and plottingOptions.PlottingOptionsTrackSplitting.validsubdets().
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.