Closed bhazelton closed 1 year ago
Patch coverage: 100.00%
and no project coverage change.
Comparison is base (
fc599c3
) 97.09% compared to head (cc65ee3
) 97.09%.:exclamation: Current head cc65ee3 differs from pull request most recent head 7d95af4. Consider uploading reports for the commit 7d95af4 to get more accurate results
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Looks like we need to update some calls to np.product
-> np.prod
. Shall we do that in this PR as well?
The idea is to make UVFlag more self-sufficient. Adding telescope metadata was requested by users. We considered not requiring them on waterfall
objects, but we discussed it in several telecons and the consensus was that made the code overly complicated and made UVFlag less functional.
We can revisit that decision, although it would have been nice to hear about concerns when the deprecation warnings were added rather than after the functionality was actually removed.
I do think that now that waterfall objects have telescope metadata, we could make it optional to pass in UVData and UVCal objects for the to_antenna
and to_baseline
methods. I could imagine something where if you don't pass those in, the methods use all the antennas in the metadata to do the inflation.
Looks like we need to update some calls to
np.product
->np.prod
. Shall we do that in this PR as well?
Sure, feel free.
It looks like maybe those two tests that are failing are failing only on numpy>=1.25. The python 3.8 tests are passing and they use numpy 1.24.
I just realized that there's a file in this repo (antenna_flags.h5
) that is apparently not used in tests in this repo but is used in hera_cal
tests that also needed to be updated. I fixed it, but it seems like bad organization to have this file on this repo.
This updates old test files to be compatible with pyuvdata 2.4. Note that the only tests that were failing on pyuvdata 2.4 were in
test_xrfi.py
, so these file updates are specifically many of the files used in that module. Edit: I also fixed a test file (antenna_flags.h5
) that appears to not be used by tests in this repo but it is used by tests inhera_cal
, so I fixed it here to fixhera_cal
errors. I think it should probably be moved to that repo instead, but I'll leave that up to the owners of these repos.I do worry that these test files are so old that they do not represent what is actually coming off of HERA now, so I think it'd be better to replace them with newer files. But this patch at least keeps the tests working.
I'll note that there are two tests that are failing on my machine. But when I check out older versions of pyuvdata they still fail, so I think they're related to some other dependency change, not pyuvdata. Edit: those tests are passing on the python 3.8 builds, which do have numpy < 1.25, so it seems that the failures are happening with numpy>=1.25.
For reference, the test output with the two failures is copied below: