Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix api call to ENU_from_ECEF for pyuvdata 3.0 #402

Merged
merged 14 commits into from
Jul 15, 2024
Merged

Conversation

jsdillon
Copy link
Member

No description provided.

@jsdillon jsdillon requested a review from adeliegorce July 10, 2024 22:02
Copy link

codecov bot commented Jul 10, 2024

Codecov Report

Attention: Patch coverage is 95.23810% with 1 line in your changes missing coverage. Please review.

Project coverage is 96.09%. Comparing base (cd12a55) to head (aaaab5e).
Report is 19 commits behind head on main.

Files with missing lines Patch % Lines
hera_pspec/pspecdata.py 92.85% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #402      +/-   ##
==========================================
- Coverage   96.17%   96.09%   -0.08%     
==========================================
  Files          17       17              
  Lines        6118     6121       +3     
==========================================
- Hits         5884     5882       -2     
- Misses        234      239       +5     
Flag Coverage Δ
unittests 96.09% <95.23%> (-0.08%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@steven-murray
Copy link
Contributor

@jsdillon I fixed all the issues except three things:

  1. There are a bunch of errors on the setup_class() method of Test_Utils. However, the line on which it errors does not exist on my local copy (nor if you look at the "Changes" in this PR). I cannot understand where this code is coming from that is causing the error. Is the github action checking out a different commit than the one in this PR??
  2. Python 3.9 fails because there is no pyuvdata v3 for it. I could update the one breaking line of code in this PR so that it can work also with pre-pyuvdata 3, but in all other repos I've gone with "just require pyuvdata 3", so I'd argue for doing this, and support python 3.10+
  3. There are two more errors occurring now in window function tests. I wonder if @adeliegorce could weigh in on these.

@jsdillon
Copy link
Member Author

  1. No clue.

  2. Agreed, drop python 3.9.

Copy link
Contributor

@adeliegorce adeliegorce left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi!
I reviewed what @jsdillon and @steven-murray had done (thanks!) and added a few things myself that then I did not review. Note that we are dropping support for NOT future_array_shapes (as pyuvdata did): I removed all the tests re. the shape of the data_arrays since they were erroring with pyuvdata v3.0 (cannot create a UVData object with old array shapes anymore).
Everything should be working now bar the coverage tests: a test re. line 338 of pspecdata must be added - I did not do it as I am not familiar with the attributes in question.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

l. 338 is not tested

@jsdillon
Copy link
Member Author

I removed some irrelevant test and added python 3.12 testing, but now one WF test is failing again if you want to look at it @adeliegorce.

I'm not so worried about the coverage issue, but maybe @steven-murray has an idea of why pyuvdata changes have changed the coverage here?

@adeliegorce
Copy link
Contributor

Hi @jsdillon, I fixed the issues in the UVWindow tests, we're just down to the coverage issue (it really is just one rather long if statement to cover)

@steven-murray
Copy link
Contributor

I totally don't think it's worth trying to cover that one corner case exception.

@jsdillon
Copy link
Member Author

Agreed. I'll merge.

@jsdillon jsdillon merged commit 8950367 into main Jul 15, 2024
7 of 9 checks passed
@jsdillon jsdillon deleted the enu_from_ecef_api_fix branch July 15, 2024 17:21
@adeliegorce
Copy link
Contributor

Ah but it brought the coverage way down…

@steven-murray
Copy link
Contributor

Not according to codecov? It was just one line

@adeliegorce
Copy link
Contributor

I thought I saw somewhere coverage was down to 92% but you're right, it's actually still around 96%

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants