Skip to content

Commit

Permalink
Detect auto-correlations via np.allclose, rather than equality
Browse files Browse the repository at this point in the history
  • Loading branch information
sjperkins committed May 27, 2024
1 parent cbc64d7 commit 4b431c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion africanus/averaging/bda_mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4b431c9

Please sign in to comment.