From c8ce10bada77f7234d553d9a86be208b12e7c27a Mon Sep 17 00:00:00 2001 From: Sebastiaan van der Tol <tol@astron.nl> Date: Thu, 13 Aug 2020 15:30:48 +0200 Subject: [PATCH] Flip axis instead of sign of phi --- demo/comparison-oskar/read_oskar_beams.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/demo/comparison-oskar/read_oskar_beams.py b/demo/comparison-oskar/read_oskar_beams.py index 2c6096cf..e63d1c31 100644 --- a/demo/comparison-oskar/read_oskar_beams.py +++ b/demo/comparison-oskar/read_oskar_beams.py @@ -27,7 +27,7 @@ def read_oskar_beams(): if A is None: N = d.shape[-1] A = np.zeros((N, N, 2, 2), dtype=np.complex128) - A[:, :, i, j] = d + A[:, :, i, j] = d[::-1, :] N = A.shape[0] for i in range(N): @@ -39,7 +39,7 @@ def read_oskar_beams(): # Need to swap the sign of phi to get the transformation right # Still need to figure out why - phi = -phi + # phi = -phi e_theta = np.array([[np.cos(phi)], [np.sin(phi)]]) e_phi = np.array([[-np.sin(phi)], [np.cos(phi)]]) -- GitLab