Skip to content

Commit

Permalink
Fix python style errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkusFrankATcernch committed Jul 3, 2024
1 parent 7187f49 commit c795839
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DDG4/python/DDG4.py
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@ def setupDetector(self, name, action, collections=None):
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
Expand All @@ -686,7 +686,7 @@ def setupCalorimeter(self, name, type=None, collections=None): # noqa: A001,A00
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
Expand Down
1 change: 1 addition & 0 deletions examples/ClientTests/scripts/BoxOfStraws.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit c795839

Please sign in to comment.