From 028fd92f8cddf31fab1c0ed4103c737b7d7ccaa5 Mon Sep 17 00:00:00 2001 From: Markus Frank <Markus.Frank@cern.ch> Date: Fri, 15 Jul 2022 12:15:41 +0200 Subject: [PATCH] Fix python style according to Flake8 --- examples/DDG4/scripts/TestProperties.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/DDG4/scripts/TestProperties.py b/examples/DDG4/scripts/TestProperties.py index e267b6f40..3b1206283 100644 --- a/examples/DDG4/scripts/TestProperties.py +++ b/examples/DDG4/scripts/TestProperties.py @@ -110,10 +110,11 @@ def run(): act.vector_PxPyPzEVector = [(1 * GeV,2 * GeV,3 * GeV,4 * GeV), (11 * GeV,22 * GeV,33 * GeV,44 * GeV), (111 * GeV,222 * GeV,333 * GeV,444 * GeV)] - print(dir(act.prop_int)) - print(dir(act.get())) - print(dir(act.get().properties)) + + act.enableUI() + # Check read access: + """ print('--> {value}'.format(value='-------------------------------------------------------')) print('--> {value}'.format(value=str(act.prop_str))) # 'Hello World!' print('--> {value}'.format(value=str(act.prop_bool))) # True @@ -124,8 +125,7 @@ def run(): print('--> {value}'.format(value=str(act.prop_XYZVector))) # (1 * m,2 * m,3 * m) print('--> {value}'.format(value=str(act.prop_PxPyPzEVector))) # (1 * GeV,2 * GeV,3 * GeV,4 * GeV) print('--> {value}'.format(value='-------------------------------------------------------')) - - act.enableUI() + """ phys = geant4.setupPhysics('FTFP_BERT') phys.dump() -- GitLab