Skip to content

Conversation

@marqh
Copy link
Owner

@marqh marqh commented Apr 6, 2017

No description provided.

@marqh marqh force-pushed the eccodestransfer branch 3 times, most recently from 83d8968 to d32040a Compare April 6, 2017 10:59
@marqh marqh force-pushed the eccodestransfer branch from d32040a to 8aa78d7 Compare April 6, 2017 11:53
Copy link

@DPeterK DPeterK left a 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])
Copy link

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 '
Copy link

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]
Copy link

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]
Copy link

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]
Copy link

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]
Copy link

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]
Copy link

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]
Copy link

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]
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And once more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants