-
Notifications
You must be signed in to change notification settings - Fork 300
Splitattrs ncsave redo #5410
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
Splitattrs ncsave redo #5410
Conversation
d0a330a to
068bd48
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## FEATURE_split_attrs #5410 +/- ##
=======================================================
+ Coverage 89.41% 89.42% +0.01%
=======================================================
Files 89 89
Lines 22500 22543 +43
Branches 5396 5410 +14
=======================================================
+ Hits 20119 20160 +41
- Misses 1636 1638 +2
Partials 745 745
☔ View full report in Codecov by Sentry. |
5d82b1f to
8ddc88d
Compare
ed17fb5 to
78aaebb
Compare
b07af3f to
54f344c
Compare
trexfeathers
left a comment
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.
OK here are some more comments. I still need to look at the tests.
The changes here demonstrate how much better it is to now have the CubeAttrsDict managing things, allowing the user to see what is happening during their scripts, rather than a load of 'magic' happening during save.
trexfeathers
left a comment
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.
OK I have read through the tests as they are currently and they make sense. I hope to spend some more time thinking about anything that needs to be added (different to just reading what is in front of me!)
d305f30 to
19a2956
Compare
|
N.B. the pass for commit 8987a26 tests the new code against snapshotted behaviours from v3.6.1. However, the matrix testing does not currently cover all the "special-case" attributes which the loader and saver may treat differently, e.g. "Conventions" or "STASH". |
|
The "matrix" testing obviously adds a lot of tests (~2000). And these are integrational tests all of which read+write test netcdf files. Which obviously raises some performance concerns, timings and counts of total tests :
|
trexfeathers
left a comment
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.
I've looked at the changes from fb343ae onwards and it looks good to me! I'm happy that you have written something that can capture any change in behaviour going forward, as well as demonstrating how behaviour has changed as part of this work. Great job!
|
@pp-mo is there anything left outstanding that you want to do before I merge this? |
|
Alright, that's merged. Ready for the next tranche you have mentioned 📭 |
|
@trexfeathers fantastic ! |
Closes #4986
Rework of #5404 with ...
STILL TO DO :
FUTURE.save_split_attrsenabled