JobOptionsSvc returns integer for boolean properties
With the current Gaudi master branch we are seeing some unit test failures in ATLAS that come down to a change of behavior of the JobOptionsSvc when returning boolean property values. Take the following executable:
import GaudiPython.Bindings as GaudiPython
from Configurables import HelloWorld
alg = HelloWorld('HelloWorld',
Timeline = True)
theApp = GaudiPython.AppMgr()
# Read property from C++ JobOptionsSvc
from GaudiPython.Bindings import gbl, InterfaceCast
svc = gbl.GaudiPython.Helper.service(gbl.Gaudi.svcLocator(), "JobOptionsSvc")
joboptsvc = InterfaceCast(gbl.Gaudi.Interfaces.IOptionsSvc).cast(svc)
print('Timeline =',joboptsvc.get('HelloWorld.Timeline'))
In master
, I am seeing:
ApplicationMgr INFO Application Manager Configured successfully
Timeline = 1
ApplicationMgr INFO Application Manager Terminated successfully
whereas in v36r14
I am getting:
ApplicationMgr INFO Application Manager Configured successfully
Timeline = True
ApplicationMgr INFO Application Manager Terminated successfully