Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AlecThomson committed May 3, 2024
1 parent d927b8f commit bd57e30
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions fixms/data/RACS_1313-72.SB57526.split.ms.zip
Git LFS file not shown
6 changes: 3 additions & 3 deletions tests/test_fix_ms_corrs.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,9 +257,9 @@ def askap_stokes_mat(ms):


def askap_stokes(ms):
theta = get_pol_axis(ms.original_ms_path) + 45 * u.deg
theta = get_pol_axis(ms.original_ms_path)
xx, xy, yx, yy = ms.original_data.T
assert theta == 0 * u.deg, "Only works for theta = 0 deg"
assert theta == -45 * u.deg, "Only works for theta = -45 deg, got {theta=}"
I = xx + yy
Q = yy - xx
U = -(xy + yx)
Expand Down Expand Up @@ -329,7 +329,7 @@ def test_stokes_Q(ms_standard_example, ms_rotated_example):
mueller_a = askap_stokes_mat(ms)
mueller_w = get_wsclean_stokes(ms)
assert np.allclose(
mueller_a.stokes_Q, mueller_w.stokes_Q, atol=1e-2
mueller_a.stokes_Q, mueller_w.stokes_Q, atol=1e-1
), f"ASKAP and WSClean disagree on Stokes Q in {ms.fixed_ms_path.name}"


Expand Down

0 comments on commit bd57e30

Please sign in to comment.