Closed jsdillon closed 1 year ago
Base: 97.10% // Head: 97.06% // Decreases project coverage by -0.04%
:warning:
Coverage data is based on head (
1f5b315
) compared to base (87299d5
). Patch coverage: 100.00% of modified lines in pull request are covered.
:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.
A recent PR #434 simplified
ant_metrics. calc_corr_stats
but made it less tolerant of zeros appearing in either the odd or even spectrum (or both). As it stands, a single zero in either the even or odd spectrum makes the whole statistic NaN.If a single X-engine is down, for example, it should still be possible to calculate a corr metric for a given baselines, even if there are some zeros. And in general, we want to do this to help identify white rabbit failures and cross-polarized antennas, which is the purpose of ant_metrics. This PR robustifies the calculation using a using a nanmean.
If there are zeros in the spectrum,
ant_class. even_odd_zeros_checker
is the right tool to diagnose that. If an antenna is totally dead, we already have a way to handle that in ant_metrics.This PR adds a test to expose this issue. It also speeds up calc_corr_stats by ~15% by avoiding repeating the multiplication and normalization.