-
Notifications
You must be signed in to change notification settings - Fork 0
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
Define common-metadata operations on split attribute dictionaries. #77
base: splitattrs_ncsave_redo
Are you sure you want to change the base?
Conversation
Codecov Report
❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more. @@ Coverage Diff @@
## splitattrs_ncsave_redo #77 +/- ##
=========================================================
Coverage ? 89.44%
=========================================================
Files ? 89
Lines ? 22590
Branches ? 5422
=========================================================
Hits ? 20205
Misses ? 1639
Partials ? 746 |
Note:legacy tests do pass ! 👍
|
255eabb
to
76a3974
Compare
Hmm, we are not done with this, as seen in doc-tests failures. |
Ok I think the latest commit fixes it. The logic here is that different Metadata types may not be combined in operations. By "promoting" left+right to split-dicts where required, I think this gives the correct behaviour. |
* Clarification in CubeAttrsDict examples. * CubeAttrsDict fix docstring typo. * Raise awareness of split attributes in user guide. * What's New entry. * Changes to metadata documentation.
* Add docs and future switch, no function yet. * Typing enables code completion for Cube.attributes. * Make roundtrip checking more precise + improve some tests accordingly (cf. SciTools#5403). * Rework all tests to use common setup + results-checking code. * Saver supports split-attributes saving (no tests yet). * Tiny docs fix. * Explain test routines better. * Fix init of FUTURE object. * Remove spurious re-test of FUTURE.save_split_attrs. * Don't create Cube attrs of 'None' (n.b. but no effect as currently used). * Remove/repair refs to obsolete routines. * Check all warnings from save operations. * Remove TestSave test numbers. * More save cases: no match with missing, and different cube attribute types. * Run save/roundtrip tests both with+without split saves. * Fix. * Review changes. * Fix changed warning messages. * Move warnings checking from 'run' to 'check' phase. * Simplify and improve warnings checking code. * Fix wrong testcase. * Minor review changes. * Fix reverted code. * Use sets to simplify demoted-attributes code. * WIP * Working with iris 3.6.1, no errors TestSave or TestRoundtrip. * Interim save (incomplete?). * Different results form for split tests; working for roundtrip. * Check that all param lists are sorted. * Check matrix result-files compatibility; add test_save_matrix. * test_load_matrix added; two types of load result. * Finalise special-case attributes. * Small docs tweaks. * Add some more testcases, * Ensure valid sort-order for globals of possibly different types. * Initialise matrix results with legacy values from v3.6.1 -- all matching. * Add full current matrix results, i.e. snapshot current behaviours. * Review changes : rename some matrix testcases, for clarity.
d06f589
to
9d17da4
Compare
dae3a28
to
b00b37f
Compare
WIP
just testing
provisional changes to common-metadata to accommodate split attribute dictionaries
No new function yet -- just to see if it breaks any existing testsWill need additional tests for how this actually functions with split-attr testcasesEDIT: this actually works now, and should be good, subject to first merging SciTools#5410 and rebasing/retargetting this as required.