From 4b431c9edcef6225bc2688b534fad9af607c12eb Mon Sep 17 00:00:00 2001 From: Simon Perkins Date: Mon, 27 May 2024 13:03:45 +0200 Subject: [PATCH] Detect auto-correlations via np.allclose, rather than equality --- africanus/averaging/bda_mapping.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/africanus/averaging/bda_mapping.py b/africanus/averaging/bda_mapping.py index 0b1fbe78..464bf179 100644 --- a/africanus/averaging/bda_mapping.py +++ b/africanus/averaging/bda_mapping.py @@ -515,7 +515,7 @@ def update_lookups(finalised, bl): binner.reset() # Auto-correlated baseline - auto_corr = ubl[bl, 0] == ubl[bl, 1] + auto_corr = np.allclose(ubl[bl, 0], ubl[bl, 1]) for t in range(ntime): # Lookup row, continue if non-existent