HERA-Team / uvtools

Tools useful for the handling, visualization, and analysis of interferometric data.
MIT License
1 stars 1 forks source link

Update corr metric script #150

Closed bhazelton closed 2 years ago

bhazelton commented 2 years ago

Update the corr metric script with new M&C session handling and hdf5 plugin related imports.

codecov[bot] commented 2 years ago

Codecov Report

Base: 62.43% // Head: 62.43% // No change to project coverage :thumbsup:

Coverage data is based on head (9bedace) compared to base (7247417). Patch has no changes to coverable lines.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #150 +/- ## ======================================= Coverage 62.43% 62.43% ======================================= Files 7 7 Lines 1544 1544 ======================================= Hits 964 964 Misses 580 580 ``` | Flag | Coverage Δ | | |---|---|---| | unittests | `62.43% <ø> (ø)` | | 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. Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=HERA-Team). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=HERA-Team)

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

jsdillon commented 2 years ago

This all looks good so far, but I can't test the code because it breaks on outriggers (I think):

(RTP) obs@qmaster:/mnt/sn1/2459849$ python ~/src/uvtools/scripts/uvtools_print_corr_metric.py zen.2459849.66140.sum.uvh5 zen.2459849.66140.diff.uvh5 ee
Fixing auto-correlations to be be real-only, after some imaginary values were detected in data_array. Largest imaginary component was 75600790.0, largest imaginary/real ratio was 1777.1851851851852.
Fixing auto-correlations to be be real-only, after some imaginary values were detected in data_array. Largest imaginary component was 70276.0, largest imaginary/real ratio was 1914.5714285714287.
Traceback (most recent call last):
  File "/home/obs/src/uvtools/scripts/uvtools_print_corr_metric.py", line 97, in <module>
    node = ant_dict[key].get_part_from_type('node')['E<ground'][1:]
KeyError: 'HH320:A'