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

feat: new simultaneous inpainter #951

Closed steven-murray closed 2 months ago

steven-murray commented 2 months ago

This puts @tyler-a-cox's new simultaneous inpainter into hera_cal.lst_stack.averaging.

I refactored it a little so that the algorithm itself, that acts on a single baseline, is its own function. This makes testing it much easier, since you just have to create data arrays that are shape (nnights, nfreqs).

I've put a number of test cases in (as of now, not all of them pass...)

codecov[bot] commented 2 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 97.20%. Comparing base (dac1027) to head (5d006e0).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #951 +/- ## ========================================== + Coverage 97.18% 97.20% +0.01% ========================================== Files 30 30 Lines 10728 10793 +65 ========================================== + Hits 10426 10491 +65 Misses 302 302 ``` | [Flag](https://app.codecov.io/gh/HERA-Team/hera_cal/pull/951/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/951/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=HERA-Team) | `97.20% <100.00%> (+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.