ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/RateMonShiftTool_dev/CheckPrescales.py
(Generate patch)

Comparing UserCode/RateMonShiftTool_dev/CheckPrescales.py (file contents):
Revision 1.4 by amott, Mon Mar 26 09:40:56 2012 UTC vs.
Revision 1.5 by amott, Fri Apr 6 15:09:18 2012 UTC

# Line 96 | Line 96 | def GetPrescaleTable(HLT_Key,GT_Key,GTRS
96      HLTSeed = {}
97      for HLTPath,L1Seed in curs.fetchall():
98          if not HLTSeed.has_key(HLTPath): ## this should protect us from L1_SingleMuOpen
99 <            HLTSeed[HLTPath] = L1Seed.lstrip('"').rstrip('"')
99 >            tmp = L1Seed.lstrip('"').rstrip('"')
100 >            HLTSeed[HLTPath] = tmp.rstrip(' ')
101              
102      HLTPrescales = GetHLTPrescaleMatrix(curs,HLT_Key)
103  
# Line 123 | Line 124 | def GetPrescaleTable(HLT_Key,GT_Key,GTRS
124              continue
125          thisL1PS = []
126          for seed in L1Seeds.split(' OR '): ## unwind the OR of multiple seeds
127 +            seed = seed.lstrip(' ').rstrip(' ')
128              if seed.isdigit():
129                  continue
130              if not L1Names.has_key(seed):

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines