-
Notifications
You must be signed in to change notification settings - Fork 286
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
Add barbs plot #3710
Add barbs plot #3710
Conversation
Now that I've seen how Travis runs the tests on the gallery images I think that I can see what I need to do to get the hash and add the image to |
There is some well-hidden advice about this in the Developer Guide. The last sections should be of some help : Basically, you can use "iris/tests/idiff.py" to calculate a hash, fix up the repodata.json etc. Re-reading this though, I can see that it could still be improved ! |
Hi @pp-mo, sorry, this is a home project for the sailing club and so I've only just had a chance to look at this again. Thanks for the new v3 graphics tests instructions, they're a great improvement over the v2.4 ones on the website. SciTools/test-iris-imagehash#33 contains the new hash. All tests are now passing apart from |
Just giving this a quick bump. Now that SciTools/test-iris-imagehash#33 has been merged then if an admin could trigger the tests then hopefully they'll pass. |
Hi @jonseddon , thanks for keeping an eye on this. Please could you rebase your branch onto the latest Iris master? travis.yml has recently needed to change to point at the latest commit hash for iris-test-data, which is why a couple of tests are still not passing. Thanks |
Thanks @trexfeathers for looking at that. It's been rebased and the tests are passing now. |
OK thanks @jonseddon . We're currently looking in general at the docs and gallery examples so I believe @abooton is going to schedule this for some wider team attention 👍 |
This is just a bit of a bump to see what's going on. Sadly this PR's not on the Kanban board for Iris 3.0 Please let me know if you need the gallery example included with this PR updated for the new style gallery that you've introduced. |
Hey @jonseddon, your PR needs a wee bit of love... fancy resolving your conflicts with |
Tests should pass when #3942 is merged in. |
@jonseddon This PR has sadly gone rather stale... do you have capacity to rebase and resurrect it? |
@bjlittle Wow team scitools has been busy lately! Rebased and hopefully ready for review. |
Needs updating (and new image hashes supplied) as per #4110. |
HI @jonseddon |
… not included in this simulated data.
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
@trexfeathers I've rebased (after several attempts) and addressed the other comments. I'm a bit stuck on "Align your new code with the latest CI standards". Which file should I do this in? The other gallery examples don't include this. There's some new image hashes for the vector tests to be merged in SciTools/test-iris-imagehash#50 so tests should fail this time. |
My general point was that rebasing onto code where the CI standards had changed wouldn't have adjusted any new code, so there may have been non-compliances with the latest Black, flake8, or especially isort given this is new. Looks like the pre-commit bot caught the only problem (7a8808d). Regarding |
Co-authored-by: Martin Yeo <[email protected]>
* 'barbs' of github.com:jonseddon/iris: isort:skip [pre-commit.ci] auto fixes from pre-commit.com hooks
As far as I'm concerned this is ready to go. @jonseddon are you OK to take it out of draft? |
Thanks for your patience @jonseddon 🏆 |
Thanks to yourself and everyone who's helped! |
For a personal project it was useful to be able to plot wind barbs. matplotlib.pyplot.barbs does this easily and so I've added it to iris.plot in exactly the same way that quiver is already in there. I've added a gallery example too.
From looking at #3398 I think that I need to add a line to test the image produced to
tests/results/imagerepo.json
but all the tests are passing locally currently and I can't work out the hash value to include.