Uh oh!
There was an error while loading. Please reload this page.
WIP: Update 6 baseline images due to GMT 6.1.0 changes - #522
Conversation
1a550f7 to
b1401cfCompare
weiji14
left a comment
There was a problem hiding this comment.
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.
seisman
commented
Jul 14, 2020
OK. We can hold this PR for a while. |
seisman
commented
Jul 22, 2020
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. |
weiji14
commented
Jul 22, 2020
Sorry for the confusion. I wanted to point out how matplotlib states that
This is a totally different way of testing, different to using |
seisman
commented
Jul 22, 2020
It sounds a really good idea. |
seisman
commented
Aug 5, 2020
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
xfailmarkers.These tests fail due to slight changes between GMT 6.0 and GMT 6.1, and are not related to grid data.
Reminders
make formatandmake checkto make sure the code follows the style guide.doc/api/index.rst.