Functions | Variables
samDefinitionConsistencyCheck Namespace Reference

Functions

def findRun (file_name)
 Functions. More...
 
def findSubRun (file_name)
 

Variables

 sam = samweb_client.SAMWebClient(experiment="nova")
 
 parser = OptionParser()
 
 help
 
 action
 
 type
 
 str
 
 dest
 
 default
 
 options
 
 args
 
 input_list = options.inputs.split(",")
 
dictionary files = {}
 Get information. More...
 
dictionary all_runs = {}
 
 def_files = samweb_client.files.listFiles(sam,defname=definition)
 
 run = findRun(def_file)
 
 subrun = findSubRun(def_file)
 
dictionary missing = {}
 Analysis. More...
 
dictionary duplicate = {}
 
 runs = all_runs.keys()
 
 subruns = all_runs[run].keys()
 
 definitions = all_runs[run][subrun]
 
string header = "run : %10s"
 Summarise. More...
 
string seperator = (len(header)-7)*"-"
 
string line = "run : %10i"
 
bool missing_files = False
 
int this_missing = 0
 

Function Documentation

def samDefinitionConsistencyCheck.findRun (   file_name)

Functions.

Definition at line 6 of file samDefinitionConsistencyCheck.py.

References makeTrainCVSamples.int.

6 def findRun(file_name):
7  tokens = file_name.split("_")
8  for token in tokens:
9  if token[0] != "r": continue
10  return int(token[1:])
11  assert False, "Run can't be found in file: %s"%file_name
def samDefinitionConsistencyCheck.findSubRun (   file_name)

Definition at line 12 of file samDefinitionConsistencyCheck.py.

References makeTrainCVSamples.int.

12 def findSubRun(file_name):
13  tokens = file_name.split("_")
14  for token in tokens:
15  if token[0] != "s": continue
16  return int(token[1:])
17  assert False, "Sub-run can't be found in file: %s"%file_name

Variable Documentation

samDefinitionConsistencyCheck.action

Definition at line 21 of file samDefinitionConsistencyCheck.py.

dictionary samDefinitionConsistencyCheck.all_runs = {}

Definition at line 29 of file samDefinitionConsistencyCheck.py.

samDefinitionConsistencyCheck.args

Definition at line 22 of file samDefinitionConsistencyCheck.py.

samDefinitionConsistencyCheck.def_files = samweb_client.files.listFiles(sam,defname=definition)

Definition at line 32 of file samDefinitionConsistencyCheck.py.

samDefinitionConsistencyCheck.default

Definition at line 21 of file samDefinitionConsistencyCheck.py.

samDefinitionConsistencyCheck.definitions = all_runs[run][subrun]

Definition at line 60 of file samDefinitionConsistencyCheck.py.

samDefinitionConsistencyCheck.dest

Definition at line 21 of file samDefinitionConsistencyCheck.py.

dictionary samDefinitionConsistencyCheck.duplicate = {}

Definition at line 50 of file samDefinitionConsistencyCheck.py.

dictionary samDefinitionConsistencyCheck.files = {}

Get information.

Definition at line 28 of file samDefinitionConsistencyCheck.py.

string samDefinitionConsistencyCheck.header = "run : %10s"

Summarise.

Definition at line 76 of file samDefinitionConsistencyCheck.py.

samDefinitionConsistencyCheck.help

Definition at line 21 of file samDefinitionConsistencyCheck.py.

samDefinitionConsistencyCheck.input_list = options.inputs.split(",")

Definition at line 25 of file samDefinitionConsistencyCheck.py.

string samDefinitionConsistencyCheck.line = "run : %10i"

Definition at line 83 of file samDefinitionConsistencyCheck.py.

dictionary samDefinitionConsistencyCheck.missing = {}
bool samDefinitionConsistencyCheck.missing_files = False

Definition at line 84 of file samDefinitionConsistencyCheck.py.

samDefinitionConsistencyCheck.options

Definition at line 22 of file samDefinitionConsistencyCheck.py.

samDefinitionConsistencyCheck.parser = OptionParser()

Definition at line 20 of file samDefinitionConsistencyCheck.py.

samDefinitionConsistencyCheck.run = findRun(def_file)

Definition at line 34 of file samDefinitionConsistencyCheck.py.

samDefinitionConsistencyCheck.runs = all_runs.keys()

Definition at line 54 of file samDefinitionConsistencyCheck.py.

samDefinitionConsistencyCheck.sam = samweb_client.SAMWebClient(experiment="nova")

Definition at line 4 of file samDefinitionConsistencyCheck.py.

string samDefinitionConsistencyCheck.seperator = (len(header)-7)*"-"

Definition at line 80 of file samDefinitionConsistencyCheck.py.

samDefinitionConsistencyCheck.str

Definition at line 21 of file samDefinitionConsistencyCheck.py.

samDefinitionConsistencyCheck.subrun = findSubRun(def_file)

Definition at line 35 of file samDefinitionConsistencyCheck.py.

samDefinitionConsistencyCheck.subruns = all_runs[run].keys()

Definition at line 57 of file samDefinitionConsistencyCheck.py.

Referenced by ndrockmacro().

samDefinitionConsistencyCheck.this_missing = 0

Definition at line 86 of file samDefinitionConsistencyCheck.py.

samDefinitionConsistencyCheck.type

Definition at line 21 of file samDefinitionConsistencyCheck.py.