Skip to content

Commit

Permalink
Merge pull request #227 from ManuelHu/patch-2
Browse files Browse the repository at this point in the history
gdml: fix writing of geant4.solid.Tet to GDML
  • Loading branch information
stewartboogert authored Jan 13, 2025
2 parents 7365abc + 75a6af6 commit fee1003
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pyg4ometry/gdml/Writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1102,9 +1102,9 @@ def writeGenericTrap(self, instance):
def createPosition(self, name, x, y, z):
p = self.doc.createElement("position")
p.setAttribute("name", str(name))
p.setAttribute("x", x.expressionString)
p.setAttribute("y", y.expressionString)
p.setAttribute("z", z.expressionString)
p.setAttribute("x", self.getValueOrExpr(x))
p.setAttribute("y", self.getValueOrExpr(y))
p.setAttribute("z", self.getValueOrExpr(z))
return p

def writeTet(self, instance):
Expand Down

0 comments on commit fee1003

Please sign in to comment.