Conversation
|
Rebased to fix the Travis failure (cf. #968) |
…Ocean definitions; remove older rules this replaces.
|
Rechecked + ready to go. |
|
NOTE: I just deleted the branch by mistake, and then restored it. Hopefully this is ok.. |
There was a problem hiding this comment.
This wasn't a CF name. I realise this has not made it into the update to um_cf_map.py but do you know where wind_gust came from in the first place?
There was a problem hiding this comment.
I decided, following consulation with @marqh, that both this and the name "temperature" (above, line 77) are not sensible defiinitions and should simply be removed.
Conceivably this may cause someone problems, but I frankly doubt it, and the most practical way to find out is arguably just to do it + see if anyone complains.
Certainly, the possibility that this may cause someone a problem is not an argument for always leaving functionality as it is, if it is plainly "wrong". In principle, this is no different from our decision that these translations can no longer accept any-old units, which this change is also doing.
There was a problem hiding this comment.
...are not sensible defiinitions and should simply be removed...
Agreed
Conceivably this may cause someone problems, but I frankly doubt it, and the most practical way to find out is arguably just to do it + see if anyone complains.
Agreed
There was a problem hiding this comment.
newcases only makes sense in the context of the here and now but I don't really that much
There was a problem hiding this comment.
These look a lot like unit tests to me. Non-mockiphillic, of course.
Is there any reason they're not in the unit tests folder?
There was a problem hiding this comment.
newcasesonly makes sense in the context of the here...
especially considering oldcases has been removed from this PR as being superfluous.
There was a problem hiding this comment.
These are in the unit tests folder @bblay (lib/iris/tests/unit/fileformats/pp/test_save.py)
There was a problem hiding this comment.
yes...you passed my test, well done....
|
Looks good to me, rebase and I think its fine for going in (you might as well rename the unittest name as above at the same time). @bblay you happy? |
I'm happy-go-lucky but I haven't looked at this PR, if that's what you mean. |
|
bump |
|
I think that the unnecessary |
|
I am keen to see this merged and the follow up activity #989 also merged |
That test seems to have some small value, even though it only tests a small number of cases. It doesn't seem to be a unit test though, and I don't think the name is appropriate. I agree with @cpelley, please remove. Note: I would hope that in the future the PP save rules will be written with carefully designed, functionally decomposed Python. In this case, the standard_name to lbfc conversion will probably be encapsulated into a single function suitable for a unit test. |
|
Back to you @pp-mo, minor change then it is ready |
|
Happy with the changes made, ready to merge. |
|
Summary:
All issues raised have been addressed and the PR is ready. |
|
Bump, I think this PR is ready for merging if it has not become stale. Can you get someone assigned? |
|
Can we get someone to take press the green button on this? Another PR awaits this one (#989). |
There was a problem hiding this comment.
@pp-mo Have all of these changes been made to this file by hand?
There was a problem hiding this comment.
I assume these were added as part of:
https://github.com/metarelate/metOcean/pull/7/files
(As defined in the prerequisites).
@pp-mo can you confirm this for us?
There was a problem hiding this comment.
It's getting hard to remember (!)
I think this is a manual edit : The metarelate PR mentioned should match these, but I think there were concerns about how quickly that could be done (ha, ha), and how it might merge with other outstanding proposed changes there, so we proposed these changes separately and they have not come "via" metarelate in this case.
We were expecting these changes eventually to be subsumed by a new PR to install the latest metarelate output.
The changes themselves effectively "replace" the buggy rules removed from save_rules.txt (in sensible cases, that is).
|
This PR is going quite again :( |
|
Superceded by #1155 |
Addresses: #964
Fixes rule deriving lbfc from CF name+units; includes new "um_cf_map.py" from updated metOcean definitions; remove older rules this replaces.
Mostly wanted to simplify, but also because the existing rules do not check the units which is obviously dubious.
This requires metarelate/metOcean#7 to be merged first.
Prerequisites:
Reviewer: cpelley