Skip to content

Commit 155d8a4

Browse files
Copilot : resolve issues
1 parent c9e1e4e commit 155d8a4

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/pyflubl/Builder.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1222,17 +1222,17 @@ def MakeFlukaBeamPipe(self, name, element,
12221222
length,
12231223
0, _np.pi*2, [0,0,-1],[0,0,1],g4registry)
12241224
bplogical = _pyg4.geant4.LogicalVolume(bpsolid,g4material,name+"_bp_lv",g4registry)
1225-
bpphysical = _pyg4.geant4.PhysicalVolume([0,0,0],
1226-
[0,0,0],
1227-
bplogical,
1228-
name+"_bp_pv",
1229-
bpouterlogical,g4registry)
1225+
_bpphysical = _pyg4.geant4.PhysicalVolume([0,0,0],
1226+
[0,0,0],
1227+
bplogical,
1228+
name+"_bp_pv",
1229+
bpouterlogical,g4registry)
12301230

12311231

12321232
self._AddBookkeepingTransformation(name, rotation, translation, geomtranslation)
12331233

12341234
return self._MakeFlukaComponentCommonG4(name,bpouterlogical, bpouterphysical, flukaConvert,
1235-
rotation, geomtranslation, "drift")
1235+
rotation, translation, geomtranslation, "drift")
12361236

12371237
def MakeFlukaBeamPipe1(self, name, element,
12381238
rotation = _np.array([[1,0,0],[0,1,0],[0,0,1]]),
@@ -1645,7 +1645,7 @@ def MakeFlukaRCol(self, name, element,
16451645
flukaConvert = True):
16461646

16471647
length = element.length*1000
1648-
rotation, translation = self._MakeOffsetAndTiltTransforms(element, rotation, geomtranslation)
1648+
rotation, geomtranslation = self._MakeOffsetAndTiltTransforms(element, rotation, geomtranslation)
16491649

16501650
outerHorizontalSize = self._GetDictVariable(element, "outerHorizontalSize", self.options.outerHorizontalSize)
16511651
outerVerticalSize = self._GetDictVariable(element, "outerVerticalSize", self.options.outerVerticalSize)
@@ -2065,7 +2065,7 @@ def MakeFlukaGap(self, name, element,
20652065
self.worldLogical,
20662066
g4registry)
20672067

2068-
self._AddBookkeepingTransformation(name, rotation, geomtranslation)
2068+
self._AddBookkeepingTransformation(name, rotation, translation, geomtranslation)
20692069

20702070
return self._MakeFlukaComponentCommonG4(name,outerlogical, outerphysical, flukaConvert,
20712071
rotation, translation, geomtranslation,"gap")

0 commit comments

Comments
 (0)