HERA-Team / hera_pspec

HERA power spectrum estimation code and data formats
http://hera-pspec.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
4 stars 3 forks source link

`check_uniform_input` breaks when the first and last integrations are flagged and the covariances are all 0s #385

Open jsdillon opened 1 year ago

jsdillon commented 1 year ago

https://github.com/HERA-Team/hera_pspec/blob/f7161612d409073e96bd2ff642fa5a2f8468a6ce/hera_pspec/pspecdata.py#L1891-L1900

This should probably look for the first and last non-zero, finite covariance to compare to the last one to see if it's actually time stable.