From f19c965aca6bfcddecb8c63070e00a6f3739dca1 Mon Sep 17 00:00:00 2001 From: Steven Murray Date: Thu, 30 Nov 2023 18:03:46 +0100 Subject: [PATCH] testfix: expect flags to be different between inpaint/flagged modes --- hera_cal/tests/test_lstbin_simple.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hera_cal/tests/test_lstbin_simple.py b/hera_cal/tests/test_lstbin_simple.py index a6f0b0ddb..42a1f4308 100644 --- a/hera_cal/tests/test_lstbin_simple.py +++ b/hera_cal/tests/test_lstbin_simple.py @@ -533,11 +533,11 @@ def test_inpaint_mode(self): data=_data, nsamples=nsamples, flags=flags, inpainted_mode=True ) - # The data and std in the fully-flagged bin should be different, but Nsamples - # and Flags should be the same. + # The data, flags and std in the fully-flagged bin should be different, but + # Nsamples and Flags should be the same. assert not np.allclose(df[0, 0, 0], di[0, 0, 0]) assert np.allclose(df[1:], di[1:]) - assert np.allclose(ff, fi) + assert not np.allclose(ff, fi) assert not np.allclose(stdf[0, 0, 0], stdi[0, 0, 0]) assert np.allclose(stdf[1:], stdi[1:]) assert np.allclose(nf, ni)