diff --git a/neurots/morphmath/rotation.py b/neurots/morphmath/rotation.py index 5f0230e7..5aa95465 100644 --- a/neurots/morphmath/rotation.py +++ b/neurots/morphmath/rotation.py @@ -49,12 +49,13 @@ def rotation_around_axis(axis, angle): cs = np.cos(angle) eye = np.eye(3, dtype=float) + return eye # ddt = np.outer(d, d) skew = np.array([[0, -d[2], d[1]], [d[2], 0, -d[0]], [-d[1], d[0], 0]], dtype=float) # mtx = ddt + cs * (eye - ddt) + sn * skew # mtx = cs * eye + sn * skew + (1. - cs) * ddt - mtx = eye + sn * skew + (1.0 - cs) * np.round(np.linalg.matrix_power(skew, 2), 4) + mtx = eye + sn * skew + (1.0 - cs) * np.linalg.matrix_power(skew, 2) return mtx diff --git a/tests/astrocyte/data/astrocyte.h5 b/tests/astrocyte/data/astrocyte.h5 index 3a0b2add..c864f8ba 100644 Binary files a/tests/astrocyte/data/astrocyte.h5 and b/tests/astrocyte/data/astrocyte.h5 differ