-
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
Get working with iris-grib-with-eccodes; Python 3 included. #2887
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.
Thanks @pp-mo. This looks good to me. 👍
conda-requirements.txt
Outdated
@@ -36,4 +35,4 @@ python-stratify | |||
pyugrid | |||
|
|||
# Iris extensions (i.e. key tools that depend on Iris) | |||
# iris_grib | |||
iris_grib>=0.12 |
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.
So I thought this was commented out for a reason!? iris extensions shouldn't be installed by iris because they themselves depend on Iris.
@@ -330,7 +330,7 @@ def save(source, target, saver=None, **kwargs): | |||
* netCDF - the Unidata network Common Data Format: | |||
* see :func:`iris.fileformats.netcdf.save` | |||
* GRIB2 - the WMO GRIdded Binary data format: | |||
* see :func:`iris.fileformats.grib.save_grib2`. | |||
* see :func:`iris_grib.save_grib2`. |
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.
👍
'SKIPPING test for this cube, as save/load will ' | ||
'not currently work.') | ||
warnings.warn(msg.format(i, name_cube.name())) | ||
continue |
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.
(I know it 's not your change but... ) We have more sophisticated means for skipping tests...
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.
But this isn't skipping a test, it's skipping one of the cubes tested within a single testcase.
As the set of cases is defined by content from a file, rather than the test code, I can't really see a better way ...
@@ -34,6 +34,7 @@ | |||
|
|||
if tests.GRIB_AVAILABLE: | |||
import gribapi | |||
from iris_grib._load_convert import _MDI as MDI |
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.
As a private API, we obviously we shouldn't be relying on this, but happy enough for now.
FWIW: Technically, we could not merge this in 2.0.0 and still have iris' GRIB capability using eccodes the moment we update iris-grib. I consider that to be a healthy sign of separation. As it stands, there are some good doc improvements in here that make sense to have in v2.0.0 |
4833ba3
to
94ae63b
Compare
This won't work until a new iris-grib>=0.12 is available on conda-forge
I'm assuming that will have masked dask support AND eccodes
There are changes here specific to the eccodes transition, ported across from #2607