Skip to content

Commit

Permalink
format update
Browse files Browse the repository at this point in the history
  • Loading branch information
mdhildreth committed Oct 24, 2013
1 parent 110ebe5 commit c24801c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions RecoLuminosity/LumiDB/scripts/estimatePileup_makeJSON.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,7 @@ def CalcPileup (deadTable, parameters, mode='deadtable'):
runLumiDict = {}
csvDict = {}
pieces = sepRE.split (line.strip())

if len (pieces) < 10: # means we are missing data; keep track of LS, lumi
if len (pieces) < 9: # means we are missing data; keep track of LS, lumi
InGap = 1
try:
run, lumi = int ( pieces[0] ), int ( pieces[2] )
Expand All @@ -175,7 +174,7 @@ def CalcPileup (deadTable, parameters, mode='deadtable'):
pieces[11::2] ) ]
except:
print " Bad Parsing: Check if the input format has changed"
print pieces[0],pieces[1],pieces[2],pieces[3],pieces[4],pieces[5],pieces[6],pieces[7],pieces[8],pieces[9]
print pieces[0],pieces[1],pieces[2],pieces[3],pieces[4],pieces[5],pieces[6]
continue

csvDict.setdefault (run, {})[lumi] = \
Expand Down

0 comments on commit c24801c

Please sign in to comment.