-
Notifications
You must be signed in to change notification settings - Fork 224
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
WIP: Update 6 baseline images due to GMT 6.1.0 changes #522
Conversation
1a550f7
to
b1401cf
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.
A bit hesitant to approve this but ok.
We should look into using https://matplotlib.org/3.2.2/api/testing_api.html#matplotlib.testing.decorators.check_figures_equal for the grd*
changes, i.e. check that PyGMT is reproducing the images output by the current GMT version, otherwise this is a never-ending game.
OK. We can hold this PR for a while. |
I'm a little confused here. When I first read the link, I thought we can avoid unnecessary image updates by increasing the RMS threshold, but I don't see why One more thing, we are using the pytest-mpl plugin, but the link above is for matplotlib. |
Sorry for the confusion. I wanted to point out how matplotlib states that
This is a totally different way of testing, different to using |
It sounds a really good idea. |
Tried a little bit of the mpl decorator. It doesn't work for us, because it has some matplotlib-specific codes. But the idea is great. I think we need to implement our own way to compare two figures, like: fig1 = pygmt.Figure()
fig1.basemap(....)
fig2 = pygmt.Figure()
fig2.basemap(....)
pygmt.check_figure_equal(fig1, fig2, tol="0.01") |
This PR updates the baseline images of 6 failing tests and removes the
xfail
markers.These tests fail due to slight changes between GMT 6.0 and GMT 6.1, and are not related to grid data.
Reminders
make format
andmake check
to make sure the code follows the style guide.doc/api/index.rst
.