From 660bde7a87fe0f6aa27ceed6cfffa3885b90daf6 Mon Sep 17 00:00:00 2001 From: LyceanEM <60020395+LyceanEM@users.noreply.github.com> Date: Fri, 24 May 2024 12:19:17 +0100 Subject: [PATCH] Correcting rotation matrix usage in vector mapping. --- lyceanem/electromagnetics/empropagation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lyceanem/electromagnetics/empropagation.py b/lyceanem/electromagnetics/empropagation.py index d37acdb..04450f6 100644 --- a/lyceanem/electromagnetics/empropagation.py +++ b/lyceanem/electromagnetics/empropagation.py @@ -3663,7 +3663,7 @@ def vector_mapping(local_E_vector, point_normal, rotation_matrix): global_vector """ - point_vector = point_normal.astype(local_E_vector.dtype) + point_vector = np.matmul(point_normal.astype(local_E_vector.dtype),rotation_matrix) local_axes = np.eye(3) uvn_axes = np.zeros((3, 3), dtype=local_E_vector.dtype) uvn_axes[2, :] = point_vector