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

Add fix_autos_func for reading diff autos #947

Closed jsdillon closed 2 months ago

jsdillon commented 2 months ago

Right now in HERADataFastReader we ensure autos are real by taking the absolute value (as does pyuvdata's _fix_autos()). This is wrong for diff files, so this adds an option to instead use np.real rather than np.abs if a power-user wants to.

codecov[bot] commented 2 months ago

Codecov Report

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

Project coverage is 97.24%. Comparing base (e56a686) to head (91fc3c4).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #947 +/- ## ======================================= Coverage 97.24% 97.24% ======================================= Files 30 30 Lines 10669 10669 ======================================= Hits 10375 10375 Misses 294 294 ``` | [Flag](https://app.codecov.io/gh/HERA-Team/hera_cal/pull/947/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/947/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=HERA-Team) | `97.24% <100.00%> (ø)` | | 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.