From 98e8360d7434ed0198bc9a512b090d9ae3aea05e Mon Sep 17 00:00:00 2001
From: Markus Frank <Markus.Frank@cern.ch>
Date: Wed, 3 Jul 2024 17:50:34 +0200
Subject: [PATCH] Fix python style errors.

---
 DDG4/python/DDG4.py                         | 4 ++--
 examples/ClientTests/scripts/BoxOfStraws.py | 1 +
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/DDG4/python/DDG4.py b/DDG4/python/DDG4.py
index 33bd4672c..d98cc39b2 100644
--- a/DDG4/python/DDG4.py
+++ b/DDG4/python/DDG4.py
@@ -670,7 +670,7 @@ class Geant4:
       return (seq, acts)
     return (seq, acts[0])
 
-  def setupCalorimeter(self, name, type=None, collections=None):  # noqa: A001,A002
+  def setupCalorimeter(self, name, type=None, collections=None):  # noqa: A001
     """
     Setup subdetector of type 'calorimeter' and assign the proper sensitive action
 
@@ -686,7 +686,7 @@ class Geant4:
       typ = self.sensitive_types[typ]
     return self.setupDetector(name, typ, collections)
 
-  def setupTracker(self, name, type=None, collections=None):  # noqa: A001,A002
+  def setupTracker(self, name, type=None, collections=None):  # noqa: A001
     """
     Setup subdetector of type 'tracker' and assign the proper sensitive action
 
diff --git a/examples/ClientTests/scripts/BoxOfStraws.py b/examples/ClientTests/scripts/BoxOfStraws.py
index c817f8979..09e63c545 100644
--- a/examples/ClientTests/scripts/BoxOfStraws.py
+++ b/examples/ClientTests/scripts/BoxOfStraws.py
@@ -69,6 +69,7 @@ def run():
   #
   # Setup particle gun
   gun = geant4.setupGun("Gun", particle='e+', energy=10 * GeV, multiplicity=1)
+  gun.enableUI()
   #
   # And handle the simulation particles.
   part = DDG4.GeneratorAction(kernel, "Geant4ParticleHandler/ParticleHandler")
-- 
GitLab