Skip to content

Commit

Permalink
update: center of rotation to center of the cell
Browse files Browse the repository at this point in the history
  • Loading branch information
VsevolodX committed Sep 12, 2024
1 parent b3a47c2 commit 123a845
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/py/mat3ra/made/tools/modify.py
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ def rotate_material(material: Material, axis: List[int], angle: float, wrap: boo
crystal_basis.to_crystal()
material.basis = crystal_basis
atoms = to_ase(material)
atoms.rotate(v=axis, a=angle, center=(0, 0, 0))
atoms.rotate(v=axis, a=angle, center=(0.5, 0.5, 0.5))
if wrap:
atoms.wrap()

Expand Down

0 comments on commit 123a845

Please sign in to comment.