Coder Social home page Coder Social logo

pileupCalc.py error about cmssw HOT 7 OPEN

BasChiara avatar BasChiara commented on August 23, 2024
pileupCalc.py error

from cmssw.

Comments (7)

Dr15Jones avatar Dr15Jones commented on August 23, 2024 1

assign RecoLuminosity/LumiDB

from cmssw.

mmusich avatar mmusich commented on August 23, 2024 1

type lumi

from cmssw.

cmsbuild avatar cmsbuild commented on August 23, 2024

cms-bot internal usage

from cmssw.

cmsbuild avatar cmsbuild commented on August 23, 2024

A new Issue was created by @BasChiara.

@Dr15Jones, @antoniovilela, @makortel, @mandrenguyen, @rappoccio, @sextonkennedy, @smuzaffar can you please review it and eventually sign/assign? Thanks.

cms-bot commands are listed here

from cmssw.

cmsbuild avatar cmsbuild commented on August 23, 2024

New categories assigned: db

@francescobrivio,@saumyaphor4252,@perrotta,@consuegs you have been requested to review this Pull request/Issue and eventually sign? Thanks

from cmssw.

mmusich avatar mmusich commented on August 23, 2024

@cms-sw/lumi-pog-l2 @romeof FYI

from cmssw.

mmusich avatar mmusich commented on August 23, 2024

something along:

diff --git a/RecoLuminosity/LumiDB/scripts/pileupCalc.py b/RecoLuminosity/LumiDB/scripts/pileupCalc.py
index 4c38b77d5e8..60740decba2 100755
--- a/RecoLuminosity/LumiDB/scripts/pileupCalc.py
+++ b/RecoLuminosity/LumiDB/scripts/pileupCalc.py
@@ -62,7 +62,7 @@ class EquidistantBinning(object):
     def width(self):
         return (self.xMax-self.xMin)/self.num
     def find(self, x):
-        return np.floor((x-self.xMin)*self.num/(self.xMax-self.xMin)).astype(np.int)
+        return np.floor((x-self.xMin)*self.num/(self.xMax-self.xMin)).astype(int)
 
 Sqrt2 = np.sqrt(2)
 

seems enough to fix the issue.

from cmssw.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.