Skip to content

Conversation

@pp-mo
Copy link
Member

@pp-mo pp-mo commented Oct 5, 2021

🚀 Pull Request

Description

Fixes to outstanding problems we noticed in #4318

The repr_html problem is very simple.
The mesh one is rather embarassing, because it also affects saving multiple cubes with the same mesh, which is a serious goof.

If I’d just assertCDL-snapshotted everything, I guess I’d have spotted this. But I didn’t want to do that.

If anyone thinks this could be strategically important, I could add more thorough testing of the meshes in each testcase...
E.G. I did consider a utility checking routine in #4318 that can check what things are present in each mesh.
Given the problem here, I think it would also require 'expected results' args, enabling it to detect unexpected "extras" that should not be there -- since extra coord variables aren't easily (automatically) identifiable as something that 'should' be attached to a mesh, unlike connectivites where the 'cf_role' announces it.
As I say, I did consider this for #4318, but considered it overkill.


Consult Iris pull request check list

@pp-mo
Copy link
Member Author

pp-mo commented Oct 6, 2021

Whoops, a commit called "--amend". Bit of a giveaway !!

Copy link
Member

@bjlittle bjlittle left a comment

Choose a reason for hiding this comment

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

@pp-mo A small change that makes a big difference... this is now looking really solid.

With regards to testing coverage, I'd err on the side of what we have is perfectly adequate without over engineering it. We're at the stage where we need to get some user mileage on the functionality to tease out any further issues... so I'm totally fine with what we have 👍

@bjlittle bjlittle merged commit d7f7083 into SciTools:main Oct 7, 2021
@pp-mo pp-mo deleted the ugrid_savemesh_fixes branch March 18, 2022 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants