From f04bb82342fbc8e07052efabdefa6252efa87dda Mon Sep 17 00:00:00 2001 From: Andre Sailer <andre.philippe.sailer@cern.ch> Date: Fri, 9 Oct 2015 17:06:44 +0000 Subject: [PATCH] Fix bug when checking outputlevels, fixes --printLevel --- DDSim/DD4hepSimulation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DDSim/DD4hepSimulation.py b/DDSim/DD4hepSimulation.py index d8a38e2fe..caf11cb3e 100644 --- a/DDSim/DD4hepSimulation.py +++ b/DDSim/DD4hepSimulation.py @@ -505,7 +505,7 @@ class DD4hepSimulation(object): return level except ValueError: try: - return outputLevel[level.upper()] + return outputLevel(level.upper()) except ValueError: self.errorMessages.append( "ERROR: printLevel is neither integer nor string" ) return -1 -- GitLab