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

Make error catching work with updated pyuvdata errors #924

Closed bhazelton closed 8 months ago

bhazelton commented 8 months ago

This is a small PR to fix some error handling code so that it will continue to function in the same way with a future pyuvdata release.

The code in question is identifying specific pyuvdata errors by their messages, which will be updated in a future release to make them more clear.

codecov[bot] commented 8 months ago

Codecov Report

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

Comparison is base (a9e1297) 97.18% compared to head (b9c79c0) 97.18%. Report is 1 commits behind head on main.

:exclamation: Current head b9c79c0 differs from pull request most recent head 9b334e0. Consider uploading reports for the commit 9b334e0 to get more accurate results

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