-
Notifications
You must be signed in to change notification settings - Fork 285
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
Show acceptable image test results in the docs #4392
Conversation
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.
@jamesp This is really awesome! Thanks 👍
My only comment is that Python files under docs/src/sphinxext
are explicitly not checked by black
, flake8
or isort
... happy to live with that if you are?
The alternative is either:
- we add exceptions to the rule for the linters et al configurations
- manually lint (I'm assuming that this code will be pretty stable and not subject to much change)
- we move
docs/src/sphinxext/image_test_output.py
to live somewhere else and somehow hook it in
I'm happy to do a manual run of those tools over this code 👍 |
@jamesp Works for me dude, nice one 🤟 |
* main: rtd with latest mambaforge image for faster building (SciTools#4476) Show acceptable image test results in the docs (SciTools#4392) Nc load latlon fix (SciTools#4470) update matplotlib links (SciTools#4474) Whatsnew for PR 4462 (SciTools#4475) Clarify the return type of iris.load (AVD-1899) (SciTools#4462) [pre-commit.ci] pre-commit autoupdate (SciTools#4472) Updated environment lockfiles (SciTools#4467)
* main: Use partial to make cube pickleable (SciTools#4377) Add edit via github method to Iris docs (SciTools#4461) Broken cartopy links in docs (SciTools#4464) rtd with latest mambaforge image for faster building (SciTools#4476) Show acceptable image test results in the docs (SciTools#4392) Nc load latlon fix (SciTools#4470) update matplotlib links (SciTools#4474) Whatsnew for PR 4462 (SciTools#4475) Clarify the return type of iris.load (AVD-1899) (SciTools#4462) [pre-commit.ci] pre-commit autoupdate (SciTools#4472) Updated environment lockfiles (SciTools#4467)
🚀 Pull Request
Description
There are times when I am running the tests on awkward remote platforms and I get failures due to hamming distance of graphical tests failing. It would be helpful in these circumstances to see the contents of scitools/test-iris-imagehash ordered by test, rather than hash.
This PR adds autogenerated pages to the iris docs that show, by test, the acceptable image results.
The pages added:
imagerepo.json
:The images are linked and loaded directly from the scitools/test-iris-imagehash repository.
Consult Iris pull request check list