diff --git a/DDG4/examples/CLICSidSimuLCIO.py b/DDG4/examples/CLICSidSimuLCIO.py index e50f8690a74d323836244549322df03adc208049..7fe648ecc8b26269ee03085c7da6a81e24549d08 100644 --- a/DDG4/examples/CLICSidSimuLCIO.py +++ b/DDG4/examples/CLICSidSimuLCIO.py @@ -14,9 +14,8 @@ from DDG4 import OutputLevel as Output from SystemOfUnits import * import logging -logging.basicConfig(format='%(levelname)s: %(message)s') +logging.basicConfig(format='%(levelname)s: %(message)s', level=logging.INFO) logger = logging.getLogger(__name__) -logger.setLevel(logging.INFO) def run(): diff --git a/DDG4/examples/CLICSidSimuMarkus.py b/DDG4/examples/CLICSidSimuMarkus.py index 6d86c85580fd6459f687488add739c146a35751e..7303d7f06ce69c0b95def16974faa3c6756e7230 100644 --- a/DDG4/examples/CLICSidSimuMarkus.py +++ b/DDG4/examples/CLICSidSimuMarkus.py @@ -8,9 +8,8 @@ import DDG4 from DDG4 import OutputLevel as Output from SystemOfUnits import * # -logging.basicConfig(format='%(levelname)s: %(message)s') +logging.basicConfig(format='%(levelname)s: %(message)s', level=logging.INFO) logger = logging.getLogger(__name__) -logger.setLevel(logging.INFO) # """ diff --git a/DDG4/examples/SiDSim.py b/DDG4/examples/SiDSim.py index be42f57f76c8d79183855de60b49227137ac4f1d..3975d2ef40e227b44514bee721b523834434a000 100644 --- a/DDG4/examples/SiDSim.py +++ b/DDG4/examples/SiDSim.py @@ -9,9 +9,8 @@ from DDG4 import OutputLevel as Output from SystemOfUnits import * # # -logging.basicConfig(format='%(levelname)s: %(message)s') +logging.basicConfig(format='%(levelname)s: %(message)s', level=logging.INFO) logger = logging.getLogger(__name__) -logger.setLevel(logging.INFO) """ dd4hep simulation example setup using the python configuration diff --git a/DDG4/examples/SiDSim_MT.py b/DDG4/examples/SiDSim_MT.py index 330a33aa003e9174ee10d5e7f99ad6c22d4cd6cd..a7d2ce86f38ad146fa139b730a5ea38e5fa84b8c 100644 --- a/DDG4/examples/SiDSim_MT.py +++ b/DDG4/examples/SiDSim_MT.py @@ -8,9 +8,8 @@ import DDG4 from DDG4 import OutputLevel as Output from SystemOfUnits import * # -logging.basicConfig(format='%(levelname)s: %(message)s') +logging.basicConfig(format='%(levelname)s: %(message)s', level=logging.INFO) logger = logging.getLogger(__name__) -logger.setLevel(logging.INFO) # """ diff --git a/DDG4/examples/SiD_Markus.py b/DDG4/examples/SiD_Markus.py index ab4c432462566820dac5923f8c636037a1352812..1f237df44e06621ec2eaf895a632c916ff76dc2e 100644 --- a/DDG4/examples/SiD_Markus.py +++ b/DDG4/examples/SiD_Markus.py @@ -9,9 +9,8 @@ from DDG4 import OutputLevel as Output from SystemOfUnits import * # global geant4 -logging.basicConfig(format='%(levelname)s: %(message)s') +logging.basicConfig(format='%(levelname)s: %(message)s', level=logging.INFO) logger = logging.getLogger(__name__) -logger.setLevel(logging.INFO) # """ diff --git a/DDG4/examples/readHEPMC.py b/DDG4/examples/readHEPMC.py index 9e5c02f263e57dffa7610ee1752572bc3ba0cce5..052cdee640a2c49999a4eb7fb5a7942b90661540 100644 --- a/DDG4/examples/readHEPMC.py +++ b/DDG4/examples/readHEPMC.py @@ -9,9 +9,8 @@ dd4hep simulation example setup using the python configuration from __future__ import absolute_import, unicode_literals import logging -logging.basicConfig(format='%(levelname)s: %(message)s') +logging.basicConfig(format='%(levelname)s: %(message)s', level=logging.INFO) logger = logging.getLogger(__name__) -logger.setLevel(logging.INFO) def run(input_file): diff --git a/DDG4/python/checkGeometry.py b/DDG4/python/checkGeometry.py index 50c3e8a55797efd666150c5091a0d1f2e5223233..b5458f433ead8f0385b45fa96edbe41749371896 100755 --- a/DDG4/python/checkGeometry.py +++ b/DDG4/python/checkGeometry.py @@ -16,9 +16,8 @@ import errno import optparse import logging -logging.basicConfig(format='%(levelname)s: %(message)s') +logging.basicConfig(format='%(levelname)s: %(message)s', level=logging.INFO) logger = logging.getLogger(__name__) -logger.setLevel(logging.INFO) parser = optparse.OptionParser() parser.description = "TGeo Geometry checking." diff --git a/DDG4/python/checkOverlaps.py b/DDG4/python/checkOverlaps.py index 8cd7d8db0aa081639a9c5e888771623595fbb6b3..1704afd628b342bb8848cb5c695433c9defb34ac 100755 --- a/DDG4/python/checkOverlaps.py +++ b/DDG4/python/checkOverlaps.py @@ -16,9 +16,8 @@ import errno import optparse import logging -logging.basicConfig(format='%(levelname)s: %(message)s') +logging.basicConfig(format='%(levelname)s: %(message)s', level=logging.INFO) logger = logging.getLogger(__name__) -logger.setLevel(logging.INFO) parser = optparse.OptionParser() parser.formatter.width = 132 diff --git a/DDG4/python/g4MaterialScan.py b/DDG4/python/g4MaterialScan.py index c5bbc00f0a6212b121f0f698a815609268bac056..34baa1c0f613551c71f6e534989dc3a5b0ee7255 100644 --- a/DDG4/python/g4MaterialScan.py +++ b/DDG4/python/g4MaterialScan.py @@ -17,9 +17,8 @@ import errno import optparse import logging -logging.basicConfig(format='%(levelname)s: %(message)s') +logging.basicConfig(format='%(levelname)s: %(message)s', level=logging.INFO) logger = logging.getLogger(__name__) -logger.setLevel(logging.INFO) def printOpts(opts): diff --git a/DDRec/python/dumpDetectorData.py b/DDRec/python/dumpDetectorData.py index 5f382998be2eb4a018675e81a2fc211487c5b304..2ed191f5e26f6b27276dbb650e5d46e4229cee2f 100644 --- a/DDRec/python/dumpDetectorData.py +++ b/DDRec/python/dumpDetectorData.py @@ -16,9 +16,8 @@ import errno import optparse import logging -logging.basicConfig(format='%(levelname)s: %(message)s') +logging.basicConfig(format='%(levelname)s: %(message)s', level=logging.INFO) logger = logging.getLogger(__name__) -logger.setLevel(logging.INFO) def dumpData(det): diff --git a/examples/CLICSiD/scripts/CLICRandom.py b/examples/CLICSiD/scripts/CLICRandom.py index 7e69b3d59af0e578ee79f6ec5e01a02572f9af21..362fe94dcd7a0d31d47e867a8de82581c0cea219 100644 --- a/examples/CLICSiD/scripts/CLICRandom.py +++ b/examples/CLICSiD/scripts/CLICRandom.py @@ -12,9 +12,8 @@ from ROOT import gRandom import logging from ddsix.moves import range -logging.basicConfig(format='%(levelname)s: %(message)s') +logging.basicConfig(format='%(levelname)s: %(message)s', level=logging.INFO) logger = logging.getLogger(__name__) -logger.setLevel(logging.INFO) if __name__ == "__main__": import CLICSid diff --git a/examples/CLICSiD/scripts/CLICSiDScan.py b/examples/CLICSiD/scripts/CLICSiDScan.py index 213955b848cdf7cf506c59da00bf05363509b650..47d8a9fecd3b5bd26beb41e1461398a7250c9910 100644 --- a/examples/CLICSiD/scripts/CLICSiDScan.py +++ b/examples/CLICSiD/scripts/CLICSiDScan.py @@ -9,9 +9,8 @@ from __future__ import absolute_import, unicode_literals import logging -logging.basicConfig(format='%(levelname)s: %(message)s') +logging.basicConfig(format='%(levelname)s: %(message)s', level=logging.INFO) logger = logging.getLogger(__name__) -logger.setLevel(logging.INFO) def run(): diff --git a/examples/CLICSiD/scripts/CLICSiD_LoadROOTGeo.py b/examples/CLICSiD/scripts/CLICSiD_LoadROOTGeo.py index cb50db81e07b421bf1b31e5c5235725bd1eaa6d4..3790fe740f66bf6524ca90c55963de3e167f58ad 100644 --- a/examples/CLICSiD/scripts/CLICSiD_LoadROOTGeo.py +++ b/examples/CLICSiD/scripts/CLICSiD_LoadROOTGeo.py @@ -10,9 +10,8 @@ from __future__ import absolute_import, unicode_literals import logging -logging.basicConfig(format='%(levelname)s: %(message)s') +logging.basicConfig(format='%(levelname)s: %(message)s', level=logging.INFO) logger = logging.getLogger(__name__) -logger.setLevel(logging.INFO) def run(): diff --git a/examples/CLICSiD/scripts/CLICSid.py b/examples/CLICSiD/scripts/CLICSid.py index aedc8fb3ba93305fc46f63589b2305adf17496ba..425c13e648e2a6f601dab156cce854c8d456efeb 100644 --- a/examples/CLICSiD/scripts/CLICSid.py +++ b/examples/CLICSiD/scripts/CLICSid.py @@ -4,9 +4,8 @@ import logging import DDG4 from g4units import * -logging.basicConfig(format='%(levelname)s: %(message)s') +logging.basicConfig(format='%(levelname)s: %(message)s', level=logging.INFO) logger = logging.getLogger(__name__) -logger.setLevel(logging.INFO) class CLICSid: diff --git a/examples/CLICSiD/scripts/CLIC_G4Gun.py b/examples/CLICSiD/scripts/CLIC_G4Gun.py index 93ffad4ab530b3aea368363e074e8e56249ff4f8..3a93118d6fe143e52a10f9f82e24316be0bb324d 100644 --- a/examples/CLICSiD/scripts/CLIC_G4Gun.py +++ b/examples/CLICSiD/scripts/CLIC_G4Gun.py @@ -11,9 +11,8 @@ from __future__ import absolute_import, unicode_literals import logging -logging.basicConfig(format='%(levelname)s: %(message)s') +logging.basicConfig(format='%(levelname)s: %(message)s', level=logging.INFO) logger = logging.getLogger(__name__) -logger.setLevel(logging.INFO) def run(): diff --git a/examples/CLICSiD/scripts/testDDPython.py b/examples/CLICSiD/scripts/testDDPython.py index 5d89542db1864d6b7a7d1cc9bd7058dc05868f84..cce38dd478fe17cdff2099eee9b0f2c8bdafe56d 100644 --- a/examples/CLICSiD/scripts/testDDPython.py +++ b/examples/CLICSiD/scripts/testDDPython.py @@ -12,9 +12,8 @@ gSystem.Load('libglapi') gSystem.Load('libDDPython') from ROOT import dd4hep as Core # noqa -logging.basicConfig(format='%(levelname)s: %(message)s') +logging.basicConfig(format='%(levelname)s: %(message)s', level=logging.INFO) logger = logging.getLogger(__name__) -logger.setLevel(logging.INFO) name_space = __import__(__name__) diff --git a/examples/ClientTests/scripts/DDG4TestSetup.py b/examples/ClientTests/scripts/DDG4TestSetup.py index a84d5da277768e39ed2e507c8d389f45f32a1d8b..185ae6c7b0786d735c235636a074ff47a9bc5e27 100644 --- a/examples/ClientTests/scripts/DDG4TestSetup.py +++ b/examples/ClientTests/scripts/DDG4TestSetup.py @@ -7,9 +7,8 @@ import DDG4 from DDG4 import OutputLevel as Output from SystemOfUnits import * -logging.basicConfig(format='%(levelname)s: %(message)s') +logging.basicConfig(format='%(levelname)s: %(message)s', level=logging.INFO) logger = logging.getLogger(__name__) -logger.setLevel(logging.INFO) """ diff --git a/examples/ClientTests/scripts/LheD_tracker.py b/examples/ClientTests/scripts/LheD_tracker.py index 67ac5f3c91c3a5d0dab8f0ff4f916ad4ea5b1a14..176fcaec68737e1fd8e6258890fbcdc262dc420c 100644 --- a/examples/ClientTests/scripts/LheD_tracker.py +++ b/examples/ClientTests/scripts/LheD_tracker.py @@ -9,9 +9,8 @@ from DDG4 import OutputLevel as Output from SystemOfUnits import * import logging -logging.basicConfig(format='%(levelname)s: %(message)s') +logging.basicConfig(format='%(levelname)s: %(message)s', level=logging.INFO) logger = logging.getLogger(__name__) -logger.setLevel(logging.INFO) # # diff --git a/examples/ClientTests/scripts/MiniTelRegions.py b/examples/ClientTests/scripts/MiniTelRegions.py index 294ab49e52ad5a121e4be40e9332bb388275c2c5..244cc3ff78f5b39b8c71c545fa3cc90d92493d44 100644 --- a/examples/ClientTests/scripts/MiniTelRegions.py +++ b/examples/ClientTests/scripts/MiniTelRegions.py @@ -8,9 +8,8 @@ from __future__ import absolute_import, unicode_literals import logging -logging.basicConfig(format='%(levelname)s: %(message)s') +logging.basicConfig(format='%(levelname)s: %(message)s', level=logging.INFO) logger = logging.getLogger(__name__) -logger.setLevel(logging.INFO) if __name__ == "__main__": from MiniTelSetup import Setup as MiniTel diff --git a/examples/DDCMS/scripts/CMSTrackerSim.py b/examples/DDCMS/scripts/CMSTrackerSim.py index 9278fdd1f0579a9255a783d5d812e71fab1436ee..e8307c40dce57b03ced052b82d9c7272dca405d5 100644 --- a/examples/DDCMS/scripts/CMSTrackerSim.py +++ b/examples/DDCMS/scripts/CMSTrackerSim.py @@ -8,9 +8,8 @@ from SystemOfUnits import * import logging from ddsix.moves import range -logging.basicConfig(format='%(levelname)s: %(message)s') +logging.basicConfig(format='%(levelname)s: %(message)s', level=logging.INFO) logger = logging.getLogger(__name__) -logger.setLevel(logging.INFO) # # diff --git a/examples/LHeD/scripts/LHeD.py b/examples/LHeD/scripts/LHeD.py index e636a35c90557fbb5726cd5f790cbaf729331dbb..40f4b43fe0507b2a61a5db9a42105c07d6cb9c52 100644 --- a/examples/LHeD/scripts/LHeD.py +++ b/examples/LHeD/scripts/LHeD.py @@ -4,9 +4,8 @@ import logging import DDG4 from SystemOfUnits import * -logging.basicConfig(format='%(levelname)s: %(message)s') +logging.basicConfig(format='%(levelname)s: %(message)s', level=logging.INFO) logger = logging.getLogger(__name__) -logger.setLevel(logging.INFO) class LHeD: diff --git a/examples/LHeD/scripts/LHeDRandom.py b/examples/LHeD/scripts/LHeDRandom.py index ca916c010033ff699b2cc3f999d41eb7ce16b7e2..7de87bcab992b2d6ff11fe258deccc128ac15190 100644 --- a/examples/LHeD/scripts/LHeDRandom.py +++ b/examples/LHeD/scripts/LHeDRandom.py @@ -11,9 +11,8 @@ from ROOT import gRandom import logging from ddsix.moves import range -logging.basicConfig(format='%(levelname)s: %(message)s') +logging.basicConfig(format='%(levelname)s: %(message)s', level=logging.INFO) logger = logging.getLogger(__name__) -logger.setLevel(logging.INFO) if __name__ == "__main__": import LHeD diff --git a/examples/LHeD/scripts/LHeDScan.py b/examples/LHeD/scripts/LHeDScan.py index 20d3f00ca92b7a78fa13a1a05c2c0b1e1ea0c3b7..daa854da421b92edbd9da41ff264611212f0460d 100644 --- a/examples/LHeD/scripts/LHeDScan.py +++ b/examples/LHeD/scripts/LHeDScan.py @@ -9,9 +9,8 @@ from __future__ import absolute_import, unicode_literals import logging -logging.basicConfig(format='%(levelname)s: %(message)s') +logging.basicConfig(format='%(levelname)s: %(message)s', level=logging.INFO) logger = logging.getLogger(__name__) -logger.setLevel(logging.INFO) def run(): diff --git a/examples/LHeD/scripts/LHeD_G4Gun.py b/examples/LHeD/scripts/LHeD_G4Gun.py index 8907f45c4ed831fdc4d3b551973b12fc70482197..07b1bf4260c3363bc369e8147c0f3054267b06d9 100644 --- a/examples/LHeD/scripts/LHeD_G4Gun.py +++ b/examples/LHeD/scripts/LHeD_G4Gun.py @@ -10,9 +10,8 @@ from __future__ import absolute_import, unicode_literals import logging -logging.basicConfig(format='%(levelname)s: %(message)s') +logging.basicConfig(format='%(levelname)s: %(message)s', level=logging.INFO) logger = logging.getLogger(__name__) -logger.setLevel(logging.INFO) def run(): diff --git a/examples/LHeD/scripts/LheSimu.py b/examples/LHeD/scripts/LheSimu.py index dd04a97e7a3b6ea242f0c12fb06effd314a72b47..0ec55ea7eb2646bba43cd416e113237a01ef948a 100644 --- a/examples/LHeD/scripts/LheSimu.py +++ b/examples/LHeD/scripts/LheSimu.py @@ -10,9 +10,8 @@ from __future__ import absolute_import, unicode_literals import logging -logging.basicConfig(format='%(levelname)s: %(message)s') +logging.basicConfig(format='%(levelname)s: %(message)s', level=logging.INFO) logger = logging.getLogger(__name__) -logger.setLevel(logging.INFO) def run(): diff --git a/examples/OpticalSurfaces/scripts/OpNovice_GDML.py b/examples/OpticalSurfaces/scripts/OpNovice_GDML.py index fd1cb0b725d1680b93022b4f835498e691d22817..c4a4a06a543c570f648dc4b01f4a326567dbfb01 100644 --- a/examples/OpticalSurfaces/scripts/OpNovice_GDML.py +++ b/examples/OpticalSurfaces/scripts/OpNovice_GDML.py @@ -20,9 +20,8 @@ def run(): install_dir = os.environ['DD4hepExamplesINSTALL'] kernel.loadGeometry("file:" + install_dir + "/examples/OpticalSurfaces/compact/OpNovice.xml") - logging.basicConfig(format='%(levelname)s: %(message)s') + logging.basicConfig(format='%(levelname)s: %(message)s', level=logging.INFO) logger = logging.getLogger(__name__) - logger.setLevel(logging.INFO) if __name__ == "__main__":