ROOT.TMath.Sign return template


ROOT Version: v6.18.00
Platform: Linux CC7
Compiler: GCC 6.2


Hi,

we are facing a weird problem with TMath.Sign in the latest ROOT.

to reproduce:

$ source /cvmfs/ship.cern.ch/SHiP-2020/latest/setUp.sh
$ python
>>> import ROOT
>>> ROOT.TMath.Sign(211,1)
<ROOT.TemplateProxy object at 0x7fd32fd02890>

While if we run on v6.14.00

[smosciat@lxplus709 ~]$ source /cvmfs/ship.cern.ch/SHiP-2018/latest/setUp.sh 
[smosciat@lxplus709 ~]$ python
Python 2.7.10 (default, Aug  2 2019, 11:35:43) 
[GCC 6.2.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import ROOT
>>> ROOT.TMath.Sign(211, 1)
211.0

Any idea of what it could be?

Cheers,
Simone

Maybe @moneta or @etejedor (since it’s PyROOT) can check what’s going wrong here…

Looks like a bug, I opened a ticket for it:

https://sft.its.cern.ch/jira/browse/ROOT-10256

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.