brilcalc --debug lumi -r 357900 --type PLTZERO --without-correction --datatag 23v1 -c offline
DEBUG brilws global arguments: {'--debug': True,
'--help': False,
'--version': False,
'--warn': False,
'-h': False,
'<args>': ['-r', '357900', '--type', 'PLTZERO', '--without-correction', '--datatag', '23v1', '-c', 'offline'],
'<command>': 'lumi'}
DEBUG brilws command arguments: ['lumi', '-r', '357900', '--type', 'PLTZERO', '--without-correction', '--datatag', '23v1', '-c', 'offline']
DEBUG brilws connecturl: oracle+cx_oracle://cms_runinfo_r:Mickey_2_Mouse@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=cmsonr-adg1-s.cern.ch)(PORT=10121))(ENABLE=BROKEN)(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=cms_orcon_adg.cern.ch)))
DEBUG brilws select DATATAGNAMEID as datatagnameid from cms_lumi_prod.datatags where DATATAGNAME=:datatagname
DEBUG brilws lumiquerytype detraw
DEBUG brilws scalefactor: 1.00
DEBUG brilws get_shard_and: select id from cms_lumi_prod.tableshards where minrun<=:runnum and maxrun>=:runnum
DEBUG brilws {'runnum': 357900}
DEBUG brilws shards: [7]
DEBUG brilws dataIter pltzero raw: select datatagid,avglumi,fillnum,runnum,lsnum,timestampsec,beamstatusid,cmson,deadtimefrac,datatagnameid,targetegev,numbxbeamactive from (select i.datatagid as datatagid,i.fillnum as fillnum,i.runnum as runnum,i.lsnum as lsnum,i.timestampsec as timestampsec,i.beamstatusid as beamstatusid,i.cmson as cmson,i.deadtimefrac as deadtimefrac,i.datatagnameid as datatagnameid,b.avglumi as avglumi,f.targetegev as targetegev,f.numbxbeamactive as numbxbeamactive,rank() over(partition by i.runnum,i.lsnum order by i.datatagid desc) rnk from cms_lumi_prod.ids_datatag i, cms_lumi_prod.pltzero_raw_7 b, cms_lumi_prod.lhcfill f where i.fillnum=f.fillnum and i.datatagid=b.datatagid and i.runnum=:runmin and i.datatagnameid<=:datatagnameid) where rnk=1 order by runnum,lsnum
DEBUG brilws {'runmin': 357900, 'datatagnameid': 7019388617931930111}
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 668, 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,dataset=pargs.dataset)
File "/home/bril/.local/lib/python3.10/site-packages/brilws/cli/brilcalc_main.py", line 325, in lumi_per_normtag
delivered = avglumi*totfactor
TypeError: unsupported operand type(s) for *: 'decimal.Decimal' and 'float'