HERA-Team / hera_qm

HERA Data Quality Metrics
MIT License
2 stars 2 forks source link

add a helpful message to warn users that they have provided a file with only auto-correlations but set the correlations option to `auto` and vice versa #367

Closed aewallwi closed 4 years ago

aewallwi commented 4 years ago

As is, this results in a not-so-helpful divide by zero error. Error happens around 1570-1580.

https://github.com/HERA-Team/hera_qm/blob/b5e63e30be66fdd127ce052dc96246e55321963b/hera_qm/xrfi.py#L1570

Right now, this results in a not-so-helpful divide by zero error.