HERA-Team / hera_cal

Library for HERA data reduction, including redundant calibration, absolute calibration, and LST-binning.
MIT License
13 stars 8 forks source link

Fix stats #946

Closed steven-murray closed 2 months ago

steven-murray commented 3 months ago

This fixes the stats module so that the distributions align with the new memo (not published as yet... in Danny's todo log). It also adds much more complete docstrings to those distributions.

It also adds a new function to do simultaneous inpainting and LST-binning, as well as a new function to get z^2 scores in a faster way on a whole stack.

codecov[bot] commented 3 months ago

Codecov Report

Attention: Patch coverage is 99.21260% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 97.25%. Comparing base (7b4c3b1) to head (d279743).

Files Patch % Lines
hera_cal/lst_stack/averaging.py 98.57% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #946 +/- ## ========================================== + Coverage 97.24% 97.25% +0.01% ========================================== Files 30 30 Lines 10669 10766 +97 ========================================== + Hits 10375 10471 +96 - Misses 294 295 +1 ``` | [Flag](https://app.codecov.io/gh/HERA-Team/hera_cal/pull/946/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=HERA-Team) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/HERA-Team/hera_cal/pull/946/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=HERA-Team) | `97.25% <99.21%> (+0.01%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=HERA-Team#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.