Skip to content
Snippets Groups Projects
Commit 4ba7d311 authored by vishal's avatar vishal
Browse files

Removed tests for consistency in stokes parameters.

parent f646ea75
Branches
No related tags found
1 merge request!48Polarization response
Pipeline #205989 failed
......@@ -28,8 +28,6 @@ def convert_polarization(inp, inp_pol, out_pol):
[0,0,1,1],
[0,0,1j,-1j]])
if inp_pol == ('I', 'Q', 'U', 'V'):
if jnp.any(inp[0]**2 < inp[1]**2 + inp[2]**2 + inp[3]**2) or jnp.any(inp[0]) <= 0:
raise ValueError('Values for Stokes parameters are inconsistent.')
if out_pol == ('RR', 'RL', 'LR', 'LL'):
return jnp.tensordot(mat_stokes_to_circular, inp, axes=([0],[0]))
elif out_pol == ('XX', 'XY', 'YX', 'YY'):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment