-
Notifications
You must be signed in to change notification settings - Fork 0
Eccodestransfer #57
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
base: master
Are you sure you want to change the base?
Eccodestransfer #57
Conversation
83d8968 to
d32040a
Compare
DPeterK
left a comment
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.
@marqh some thoughts from me. Looks good!
| result = ma.masked_equal(item, _MDI) | ||
| mdis = [mdi for mdi in _MDIs] | ||
| result = ma.masked_equal(item, mdis[0]) | ||
| result = ma.masked_equal(result, mdis[1]) |
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.
Can we be sure there will only be two MDI values?
| skip_irisgrib_fails = skipIf(iris_internal_grib_module is None, | ||
| 'Test(s) are not currently ussable with ' | ||
| '"iris_grib".') | ||
| skip_irisgrib_fails = skipIf(True, 'Test(s) are not currently ussable with ' |
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.
Looks like you've inherited a typo: 'ussable' --> 'usable'.
| import gribapi | ||
|
|
||
| from iris.fileformats.grib._load_convert import _MDIs | ||
| _mdis = [mdi for mdi in _MDIs] |
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.
Could you not just use MDIs directly? This seems like an unnecessary variable definition.
| from iris.fileformats.grib._load_convert import data_cutoff | ||
| from iris.tests import mock | ||
|
|
||
| MDI = [mdi for mdi in _MDIs][1] |
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.
MDIs[1] would surely be equivalent?
| grid_definition_template_4_and_5, _MDIs | ||
| from iris.tests import mock | ||
|
|
||
| MDI = [mdi for mdi in _MDIs][1] |
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.
Again.
| product_definition_template_40, _MDIs | ||
| from iris.tests.unit.fileformats.grib.load_convert import empty_metadata | ||
|
|
||
| MDI = [mdi for mdi in _MDIs][1] |
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.
Again.
| from iris.fileformats.grib._load_convert import Probability, _MDIs | ||
| from iris.tests import mock | ||
|
|
||
| MDI = [mdi for mdi in _MDIs][1] |
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.
Again.
|
|
||
| # Reference GRIB2 Regulation 92.1.12. | ||
|
|
||
| MDI = [mdi for mdi in _MDIs][1] |
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.
Again.
| _MDIs | ||
| from iris.tests import mock | ||
|
|
||
| MISSING_LEVEL = [mdi for mdi in _MDIs][1] |
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.
And once more.
No description provided.