From 3c7ba890aa73dd63bb1036b92acb2a0d1d9358ae Mon Sep 17 00:00:00 2001 From: Jan Kieseler Date: Wed, 20 Sep 2023 20:06:11 +0000 Subject: [PATCH] fix --- bind/G4Calo.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bind/G4Calo.py b/bind/G4Calo.py index ca9cce3..96cd926 100644 --- a/bind/G4Calo.py +++ b/bind/G4Calo.py @@ -10,8 +10,8 @@ from IPython.display import Image, display class G4System(_G4System): def run_visualize(self,particleSpec : str, minEnergy_GeV: float, maxEnergy_GeV:float = -1.): - if maxEnergy < 0: - maxEnergy = minEnergy + if maxEnergy_GeV < 0: + maxEnergy_GeV = minEnergy_GeV _G4System.run_visualize(self, particleSpec, minEnergy_GeV, maxEnergy_GeV) self.displayEvent()