Crash for MuonPhys JSON file for HLT trigger HLT_DoubleMu4_JpsiTrk_Displaced_v*
Input:
brilcalc lumi --normtag /cvmfs/cms-bril.cern.ch/cms-lumi-pog/Normtags/normtag_PHYSICS.json -u /fb -i /afs/cern.ch/cms/CAF/CMSCOMM/COMM_DQM/certification/Collisions18/13TeV/Legacy_2018/Cert_314472-325175_13TeV_Legacy2018_Collisions18_JSON_MuonPhys.txt --hltpath "HLT_DoubleMu4_JpsiTrk_Displaced*"
Error:
/home/bril/.local/lib/python3.10/site-packages/brilws/cli/brilcalc_main.py:630: FutureWarning: iteritems is deprecated and will be removed in a future version. Use .items instead.
for r,l in rs.iteritems():
/home/bril/.local/lib/python3.10/site-packages/numpy/lib/shape_base.py:790: FutureWarning: The behavior of `series[i:j]` with an integer-dtype index is deprecated. In a future version, this will be treated as label-based indexing, consistent with e.g. `series[i]` lookups. To retain the old behavior, use `series.iloc[i:j]`. To get the future behavior, use `series.loc[i:j]`.
sub_arys.append(_nx.swapaxes(sary[st:end], axis, 0))
/home/bril/.local/lib/python3.10/site-packages/brilws/api.py:1133: FutureWarning: iteritems is deprecated and will be removed in a future version. Use .items instead.
for run,lsrange in inputSeries.iteritems():
Traceback (most recent call last):
File "/home/bril/.local/bin/brilcalc", line 8, in <module>
sys.exit(brilcalc_main())
File "/home/bril/.local/lib/python3.10/site-packages/brilws/cli/brilcalc_main.py", line 654, in brilcalc_main
lumi_per_normtag(shards,qtype,dbengine,dbschema,runtot,myformatter,datasource=dsource,normtag=ntag,withBX=pargs.withBX,byls=pargs.byls,fh=fh,csvwriter=csvwriter,ptable=ptable,scalefactor=scalefactor,totz=totz,fillmin=fillmin,fillmax=fillmax,runmin=runmin,runmax=runmax,amodetagid=amodetagid,egev=egev,beamstatusid=beamstatusid,tssecmin=tssecmin,tssecmax=tssecmax,runlsSeries=rselect,hltl1map=hltl1map,ignorel1mask=parseresult['--ignore-mask'],xingMin=pargs.xingMin,xingTr=pargs.xingTr,xingId=pargs.xingId,checkjson=checkjson,datatagnameid=datatagnameid,withfileinput=withfileinput)
File "/home/bril/.local/lib/python3.10/site-packages/brilws/cli/brilcalc_main.py", line 373, in lumi_per_normtag
runtot[ (pth,runnum) ]['delivered'] += np.true_divide(delivered,thispresc)
TypeError: unsupported operand type(s) for /: 'float' and 'decimal.Decimal'