From 123a8450cfc7f01a4b90f697caf9d4ee69a5d7a2 Mon Sep 17 00:00:00 2001 From: VsevolodX <79542055+VsevolodX@users.noreply.github.com> Date: Thu, 12 Sep 2024 13:00:57 -0700 Subject: [PATCH] update: center of rotation to center of the cell --- src/py/mat3ra/made/tools/modify.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/py/mat3ra/made/tools/modify.py b/src/py/mat3ra/made/tools/modify.py index 8e7a35bc..ea0bc6d9 100644 --- a/src/py/mat3ra/made/tools/modify.py +++ b/src/py/mat3ra/made/tools/modify.py @@ -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()