-
Notifications
You must be signed in to change notification settings - Fork 32
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
llc rearray update #214
llc rearray update #214
Conversation
…t assertions are correct (dims and coords on HyCOM file are same)
…t assertions are correct (dims and coords on HyCOM file are same)
…ws to recenter the data
I think the test failure is unrelated to this PR. I didn't have the time to look into it, but tests started failing last week in the master branch as well. https://github.com/hainegroup/oceanspy/actions/runs/1806606996 |
…es if cutout involved a single face
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me...apart from the failing tests. Can we merge now or do the failing tests need to be fixed first?
I think keeping track of why these test are failing is important, but there is a way to go through with this PR. The issue seems to be two failing tests associated |
@malmans2 What do you prefer? Fix the failing tests first then merge or vice versa? |
Codecov Report
@@ Coverage Diff @@
## master #214 +/- ##
==========================================
+ Coverage 95.30% 96.60% +1.30%
==========================================
Files 10 10
Lines 3809 3569 -240
Branches 849 766 -83
==========================================
- Hits 3630 3448 -182
+ Misses 99 68 -31
+ Partials 80 53 -27
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Huh, now the tests pass... |
@ThomasHaine the issue is still there, I commented the two failing tests in |
Understood. I'm happy to merge. |
Hi! Regarding tests, don't worry about those, they are not related to this PR. But I don't think commenting out the tests is the best way to go. I'd merge this PR even if tests are failing, then we'll address those issues in a separate PR. Are you able to merge even if tests are failing? Let me know if you can't and I'll change your permissions, I think you are "maintainer" right now. |
Got it. I didn't know you could approve with failing tests. I un-commented the failing tests (unrelated with this PR) and will wait for @asiddi24 to take a look at this PR. I don't think I can merge when tests are failing.. |
This is an update to
llc_rearrange.py
. It now uses exclusively xarray to manipulate datasets and remove faces (all or a subset) as a dimension (before bit of xarray and numpy, which was slow).Some more changes will come in the next couple of weeks. But this is usable now.
Could use more testing. I will add more in the follow up PR.