-
Notifications
You must be signed in to change notification settings - Fork 5
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
Use CSET read operator to load test data, and improve various fragile tests #1076
Conversation
55f7370
to
726e37d
Compare
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, one comment to ensure backwards compatibility as one of the convection tests has lost full coverage.
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.
As now loaded by CSET the time coordinate should not appear on its own, as all cubes given a realization coordinate. Therefore, this part of the operator that is "not tested" can be removed when the convection code is updated to run with LFRic. Please create an issue.
They were very brittle due to relying on the serialisation of a method signature. These have been converted to directly check the concerned properties of the cubes.
Also use more robust checking on single point regrid tests and use range rather than long list of expected points.
a2055ff
to
993c6f6
Compare
I've rebased to fix some merge conflicts, and improve the data loading in the convection tests in commit 993c6f6, which is the only new once since your last review. I'd appreciate another review of those additional changes before I merge this. |
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.
Happy with those changes.
A fairly wide ranging set of test improvements. The main focus is ensuring we are using the CSET read operators to load data, so it is representative of what CSET will actually be handling. The only place that remains using
iris.load
is the tests for the read operators themselves.There are also several robustness improvements to tests, to check the desired property directly rather than some tangential thing, such as the
repr()
.Contribution checklist
Aim to have all relevant checks ticked off before merging. See the developer's guide for more detail.