Skip to content

Conversation

@marqh
Copy link
Member

@marqh marqh commented Sep 8, 2016

I have:

  • decreased the check_graphic tolerance to 0.1
  • removed 3 tests which are visually reasonable but which now fail with tolerance > 1
  • updated two example gallery images, which are failing at tol=0.1
  • fixed the iris.util._is_circular function so that it correctly handles -ve diffs using np.abs
    • added unit tests to check _is_circular behaviour
    • updated the CML for the two GRIB load tests, which should be circular, according to the plot images stored (RMS Value: 9.683)
    • these plots now pass with an RMS < 0.1

@marqh marqh mentioned this pull request Sep 8, 2016
pass

def test_coord_coord(self):
pass
Copy link
Member

Choose a reason for hiding this comment

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

This is a bit odd... It looks like we could either do with some content for these tests, or for them to be removed.

Copy link
Member Author

Choose a reason for hiding this comment

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

this is an issue of test specialization. this test class is a specialization of a parent class, which implements a range of tests.
Some of these fail, some of these pass.

options:

  1. remove all the tests, including passing ones
  2. specialize these tests in this class and skip them (implemented)

would an extra developer comment stating that this is a skip pattern for the sub-class be sufficient in this case?

Copy link
Member Author

Choose a reason for hiding this comment

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

would an extra developer comment stating that this is a skip pattern for the sub-class be sufficient in this case?

(see last commit)

@DPeterK
Copy link
Member

DPeterK commented Sep 15, 2016

@marqh it would be good to get an idea of...

  • why the coriolis frequency image has been changed despite the fact that old and new appear identical, and
  • why the orca projection 2 image has changed so subtly.

Copy link
Member

@DPeterK DPeterK left a comment

Choose a reason for hiding this comment

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

I think this is good to go, but I'm just a little reticent to hit merge... @pelson @bjlittle your thoughts also appreciated!

@marqh
Copy link
Member Author

marqh commented Sep 15, 2016

@dkillick I am not sure why such subtle changes in these 2 images occur. I have tried to mimick travis' environment as closely as I can to create these images, perhaps previous contributors had not been so careful, used different versions of cartopy, proj4, etc.

The images are pretty close to the previous ones though

@bjlittle
Copy link
Member

bjlittle commented Sep 15, 2016

@marqh @dkillick Could the subtle graphic shift be related to the change in _is_circular ?

Just a thought ...

@marqh
Copy link
Member Author

marqh commented Sep 15, 2016

@marqh @dkillick Could the subtle graphic shift be related to the change in _is_circular ?

I believe not, one cube is built from scratch, one is loaded from a CF netCDF file, so neither should make use of that utility at all

@QuLogic
Copy link
Member

QuLogic commented Sep 15, 2016

The Coriolis example is a small change in the outline of Seychelles or the Maldives, maybe due to new data. The Orca projection example is a change in scaling, which I think may have originated in Matplotlib somewhere.

@bjlittle bjlittle self-assigned this Oct 3, 2016
pelson added a commit to pelson/iris that referenced this pull request Oct 4, 2016
@marqh marqh mentioned this pull request Oct 6, 2016
@marqh
Copy link
Member Author

marqh commented Oct 6, 2016

obsoleted by #2164 and #2162

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.

4 participants