ATLAS Offline Software
Namespaces | Functions | Variables
validation.py File Reference

Go to the source code of this file.

Namespaces

 validation
 

Functions

def validation.file_is_empty (path)
 
def validation.getDAOD (list_DAOD)
 
def validation.validate (testSampleDir, thisSampleName, testSamplePath, weight_database, outputSamples)
 

Variables

 validation.parser = optparse.OptionParser(usage="%prog [options]")
 
 validation.help
 
 validation.dest
 
 validation.default
 
 validation.opts
 
 validation.args
 
 validation.f = open(opts.inputSamples)
 
list validation.weight_database = []
 
 validation.SampleName = line.split()[0]
 
 validation.dsid = SampleName.split(".")[1]
 
 validation.dictionary
 
 validation.keys
 
 validation.testSamplePath = None
 
 validation.ofile = open(opts.outputSamples, 'a+')
 
string validation.ruciolist = "rucio list-dids %s*DAOD* --filter type = CONTAINER --short > list_DAOD.txt" % (SampleName.split("_")[0] + '_' + SampleName.split("_")[1] + '_' + SampleName.split("_")[2])
 
 validation.lfile = open('list_DAOD.txt', 'r')
 
 validation.list_DAOD = lfile.readlines()
 
def validation.shortDAOD = getDAOD(list_DAOD)
 
 validation.d_list = list(element for element in list_DAOD if DAOD in element)
 
 validation.thisSampleName = d_list[-1].split()[0]