Skip to content

Commit e2a1fa1

Browse files
authored
Merge pull request #45989 from IzaakWN/patch-1
Fix small typo in `makePileupJSON.py`: `runNumber` → `run`
2 parents 4dd460f + 9ad24f8 commit e2a1fa1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

RecoLuminosity/LumiDB/scripts/makePileupJSON.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@
134134
mean_pileup = bunch_del_lumi * parameters.orbitLength / parameters.lumiSectionLength
135135
if mean_pileup > 100:
136136
print("mean number of pileup events > 100 for run %d, lum %d : m %f l %f" % \
137-
(runNumber, lumi_section, mean_pileup, bunch_del_lumi))
137+
(run, lumi_section, mean_pileup, bunch_del_lumi))
138138
#print "mean number of pileup events for lum %d: m %f idx %d l %f" % (lumi_section, mean_pileup, bxid, bunch_rec_lumi)
139139

140140
total_int2 += bunch_rec_lumi*(mean_pileup-mean_int)*(mean_pileup-mean_int)

RecoLuminosity/LumiDB/scripts/pileupCalc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def __init__(self, num, xMin, xMax):
6262
def width(self):
6363
return (self.xMax-self.xMin)/self.num
6464
def find(self, x):
65-
return np.floor((x-self.xMin)*self.num/(self.xMax-self.xMin)).astype(np.int)
65+
return np.floor((x-self.xMin)*self.num/(self.xMax-self.xMin)).astype(int)
6666

6767
Sqrt2 = np.sqrt(2)
6868

0 commit comments

Comments
 (0)