-
Notifications
You must be signed in to change notification settings - Fork 44
Granularity for fixed surface arguments #146
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
Granularity for fixed surface arguments #146
Conversation
…urface arguments for translate_phenomenon - not available in some templates, in which case populate with None
|
Hey @trexfeathers! Thanks for the PR 😄 You'll need to Also, you need to change the file header from:
Also, you'll need to sign the CLA in order for us to accept your PR contribution |
corinnebosley
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.
Nice changes @trexfeathers, and it passes all the Travis tests, which is awesome!
There is one more thing which I would like in this PR though, which is one test to make sure that loading doesn't fail when there is no variable representing typeOfFirstFixedSurface.
Maybe this could go into 'iris_grib/tests/unit/load_convert/test_translate_phenomenon.py', or alternatively you could create a new test file called 'iris_grib/tests/unit/load_convert/test_product_definition_section.py' and create some tests there instead. Your choice really.
Made section_4 importable from test_product_definition_template_31.py
…ct_definition_template_31.py
Corrected license header in test_product_definition_template_31.py
@corinnebosley if the template should contain the fixed surface keys, but does not, one would still want an error to occur. It seemed best to create 4 tests for all combinations of the fixed surface keys being expected/not and present/not, so that is what I have done 👌 |
iris_grib/tests/unit/load_convert/test_product_definition_section.py
Outdated
Show resolved
Hide resolved
iris_grib/tests/unit/load_convert/test_product_definition_section.py
Outdated
Show resolved
Hide resolved
iris_grib/tests/unit/load_convert/test_product_definition_section.py
Outdated
Show resolved
Hide resolved
iris_grib/tests/unit/load_convert/test_product_definition_section.py
Outdated
Show resolved
Hide resolved
iris_grib/tests/unit/load_convert/test_product_definition_section.py
Outdated
Show resolved
Hide resolved
iris_grib/tests/unit/load_convert/test_product_definition_section.py
Outdated
Show resolved
Hide resolved
iris_grib/tests/unit/load_convert/test_product_definition_section.py
Outdated
Show resolved
Hide resolved
iris_grib/tests/unit/load_convert/test_product_definition_section.py
Outdated
Show resolved
Hide resolved
iris_grib/tests/unit/load_convert/test_product_definition_section.py
Outdated
Show resolved
Hide resolved
iris_grib/tests/unit/load_convert/test_product_definition_section.py
Outdated
Show resolved
Hide resolved
bjlittle
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.
@trexfeathers Okay, I'm reviewed out now...
Over to you 😄
test_all currently fails. Could do with outputting more info on which combination is failing
… increases instead of resetting Added print output of each test combination since they are all run as one
|
@bjlittle thanks for the review, it feels neater now. See what you think 😰 |
iris_grib/tests/unit/load_convert/test_product_definition_section.py
Outdated
Show resolved
Hide resolved
|
@trexfeathers I've requested only one final minor change, otherwise LGTM! 👍 |
…f running in parallel so best have the single test as a bit of a black box
bjlittle
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.
Awesome PR, thanks @trexfeathers 👍
product_definition_section will no longer always try to populate the fixed surface arguments for translate_phenomenon - not available in some templates, in which case populate with None
Ran iris-grib unit tests afterwards - 364 passed, 21 were ignored as they needed external data (total 385)