test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Functions | Variables
inputFilesetParser Namespace Reference

Classes

class  inputFilesetParser
 

Functions

def filehasHeader
 

Variables

tuple alreadyprocessedRuns = p.fieldvalues('Run','int')
 
string filename = '163664-v2-overview.csv+163665-v2-overview.csv+163668-v2-overview.csv+../json_DCSONLY.txt'
 
tuple p = inputFilesetParser(filename)
 
dictionary result = {}
 
tuple resultheader = p.resultHeader()
 

Function Documentation

def inputFilesetParser.filehasHeader (   f)

Definition at line 3 of file inputFilesetParser.py.

3 
4 def filehasHeader(f):
5  line=f.readline()
6  comps=line.split(',')
7  if comps and comps[0].lower()=='run':
8  return True
9  else:
10  return False

Variable Documentation

tuple inputFilesetParser.alreadyprocessedRuns = p.fieldvalues('Run','int')

Definition at line 200 of file inputFilesetParser.py.

string inputFilesetParser.filename = '163664-v2-overview.csv+163665-v2-overview.csv+163668-v2-overview.csv+../json_DCSONLY.txt'

Definition at line 187 of file inputFilesetParser.py.

tuple inputFilesetParser.p = inputFilesetParser(filename)

Definition at line 188 of file inputFilesetParser.py.

dictionary inputFilesetParser.result = {}

Definition at line 186 of file inputFilesetParser.py.

tuple inputFilesetParser.resultheader = p.resultHeader()

Definition at line 194 of file inputFilesetParser.py.