Skip to content

Commit

Permalink
more Python3 fixes for geometry script
Browse files Browse the repository at this point in the history
  • Loading branch information
kpedro88 committed Aug 13, 2021
1 parent ad16ad4 commit 306ad3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Configuration/Geometry/python/generateGeometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ def __init__(self, scriptName, detectorVersionDefault, detectorPrefix, detectorY
def generateGeom(self, detectorTuple, args):
detectorVersion = self.detectorPrefix+str(args.detectorVersionManual)
# reverse dict search if overall D# specified
if args.v_detector>0:
if args.v_detector!=self.detectorVersionType(0):
detectorVersion = self.detectorPrefix+str(args.v_detector)
if detectorVersion in self.detectorVersionDict.values():
detectorTuple = self.detectorVersionDict.keys()[self.detectorVersionDict.values().index(detectorVersion)]
detectorTuple = list(self.detectorVersionDict.keys())[list(self.detectorVersionDict.values()).index(detectorVersion)]
else:
print("Unknown detector "+detectorVersion)
sys.exit(1)
Expand Down

0 comments on commit 306ad3d

Please sign in to comment.