Skip to content

Commit

Permalink
Update surface_composite.py (openmc-dev#3189)
Browse files Browse the repository at this point in the history
  • Loading branch information
azimgivron authored Nov 9, 2024
1 parent 9983ee1 commit 70807b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openmc/model/surface_composite.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def translate(self, vector, inplace=False):
return surf

def rotate(self, rotation, pivot=(0., 0., 0.), order='xyz', inplace=False):
surf = copy(self)
surf = self if inplace else copy(self)
for name in self._surface_names:
s = getattr(surf, name)
setattr(surf, name, s.rotate(rotation, pivot, order, inplace))
Expand Down

0 comments on commit 70807b1

Please sign in to comment.