Skip to content
Snippets Groups Projects
Commit c8ce10ba authored by Bas van der Tol's avatar Bas van der Tol
Browse files

Flip axis instead of sign of phi

parent 4e5f245f
Branches
Tags
No related merge requests found
...@@ -27,7 +27,7 @@ def read_oskar_beams(): ...@@ -27,7 +27,7 @@ def read_oskar_beams():
if A is None: if A is None:
N = d.shape[-1] N = d.shape[-1]
A = np.zeros((N, N, 2, 2), dtype=np.complex128) A = np.zeros((N, N, 2, 2), dtype=np.complex128)
A[:, :, i, j] = d A[:, :, i, j] = d[::-1, :]
N = A.shape[0] N = A.shape[0]
for i in range(N): for i in range(N):
...@@ -39,7 +39,7 @@ def read_oskar_beams(): ...@@ -39,7 +39,7 @@ def read_oskar_beams():
# Need to swap the sign of phi to get the transformation right # Need to swap the sign of phi to get the transformation right
# Still need to figure out why # Still need to figure out why
phi = -phi # phi = -phi
e_theta = np.array([[np.cos(phi)], [np.sin(phi)]]) e_theta = np.array([[np.cos(phi)], [np.sin(phi)]])
e_phi = np.array([[-np.sin(phi)], [np.cos(phi)]]) e_phi = np.array([[-np.sin(phi)], [np.cos(phi)]])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment