-
Notifications
You must be signed in to change notification settings - Fork 283
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
Unpin Matplotlib and proj #3762
Conversation
The test |
Installing Cartopy now installs GDAL (see changes to the Cartopy recipe). Is it therefore appropriate to remove GDAL from iris/requirements/extensions.txt, or is it good to keep this as 'belt and braces'? |
Looking at what was done here, I now think it was a mistake to put it in that list in the first place (and I did it!) : The comment suggests that the 'extensions' should be things that depend on Iris itself (hence iris-grib). But equally, it's not clear when this information would ever used : not by Travis, not by pip, so presumably it's just a hint to users. In short, I would remove it + not worry. |
I have a hunch that this PR is the one which caused the GDAL related tests to fail OSGeo/gdal#1185. |
In light of SciTools/cartopy#1105, I've changed all tests that use SciTools/cartopy#1105 has also caused a failure in test_plot_custom_aggregation (see the relevant Travis build), but in this case I propose we should accept the new result as the correct one since it will henceforth demonstrate Cartopy's |
Given the discussion on #2952, we should probably have a wider discussion about the implications of Cartopy now bringing in GDAL as a core dependency.
|
Graphics test failuresAccepted image hash changes (SciTools/test-iris-imagehash#35):
|
"What's New" EntriesChanges here will need a "What's New", but it will be simpler to add after merging - see #3807 |
All the graphics tests are now passing. @stephenworsley I'll leave you to continue investigating the other test failures. Let me know if you need a hand 🙂 |
While I still haven't got to the root cause of why the behaviour has changed, I've looked through the documentation for the key 42113 (https://gdal.org/drivers/raster/gtiff.html#nodata-value) and there is nothing to indicate that storing a fill value for data without masked points is in any way improper. |
It looks like there is still something odd going on with test_cube. I got it working in my own environment so that the numbers were correct, but it looks like there's still something going on with the Travis environment causing there to be |
The missing values mentioned above may be related to this PR OSGeo/PROJ#2151. |
Several devs have further discussed offline. GDAL offers a number of benefits, and currently would only be responsible for a fraction of Iris' total install 'bloat', so we expect will be fine to include. We are already familiar with use cases that make regular use of GDAL/Fiona with Iris. If we make progress with reducing Iris' install size ('Iris Slimline'), GDAL's inclusion may be of greater concern. If so, there may be a case to alter Cartopy's inclusion of GDAL in its Conda recipe: the changes to that recipe for 0.18 (conda-forge/cartopy-feedstock#88) no longer reflect the fact that GDAL is actually still an optional dependency - it can still be seen to be optional in cartopy/INSTALL and the absence of GDAL in the "Minimum dependencies" matrix entry of cartopy/.travis.yml (instead only brought in with Fiona in the "Latest everything" matrix entry). |
... are we there? |
@trexfeathers close I think, just needs some reviewing now. |
OK, please can you confirm that you are happy with the changes I have made? We discussed almost all of this last week. I will review the changes you have made and once we are both happy I will merge. |
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.
This review is a text recording of a voice conversation during pair programming, where @stephenworsley explained the changes that they have made in the PR.
lib/iris/tests/results/unit/analysis/cartography/project/TestAll/cube.cml
Show resolved
Hide resolved
lib/iris/tests/results/unit/analysis/cartography/project/TestAll/cube.cml
Show resolved
Hide resolved
lib/iris/tests/results/unit/analysis/cartography/project/TestAll/cube.cml
Show resolved
Hide resolved
lib/iris/tests/results/unit/analysis/cartography/project/TestAll/cube.data.0.json
Outdated
Show resolved
Hide resolved
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.
The changes due to graphical tests look good to me.
@stephenworsley and I have finished pair programming and pair reviewing this PR. @pp-mo we'll give you some time to comment/review if you wish, but we consider this good to go 💯 |
Ok I've not considered everything here at all, only details, but I'll take a little look + see if anything sticks out... |
Just to note from previous comment ...
Likewise, from other comment
I think we don't generally bother with this too much. The chances of a bug producing a plot that matches an older result, which is now a wrong answer, are supposed to be pretty small. But it doesn't seem 'wrong' to do it. |
A lot of very careful work here ! 💐 |
I agree and accordingly I haven't done anything with SciTools/test-iris-imagehash. |
…haul * upstream/master: move whatsnew contributions (SciTools#3816) Parse with packaging version (SciTools#3815) Add "What's New" entries for unpinning Cartopy, Matplotlib, Proj (SciTools#3811) tidy issue templates (SciTools#3814) Legacy doc notice (SciTools#3813) Update issue templates Update issue templates Update issue templates Unpin Matplotlib and proj (SciTools#3762)
I just noticed this discussion. I'm sorry me adding |
@xylar luckily we're currently doing some work that should flush out any possible recipe issues, so we should be able to let you know in the next couple of days. Don't think we're expecting any problems though 🙂 |
Okay, I'm going to go ahead an merge conda-forge/cartopy-feedstock#94 unless you would prefer I hold off. |
Addresses #3759 and #3154.
It is expected that many tests may have to change to accommodate this. It should be demonstrated in each case that such a change is appropriate.