-
Notifications
You must be signed in to change notification settings - Fork 283
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
Add stash check to name() #2930
Changes from all commits
05382e8
fa2eaa7
73679da
6eb1313
e5641f6
deb11b3
e07c672
500a80f
982f6f0
95aa0ec
bd66360
4438d48
ea79aa4
511dc0b
76f3520
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
* Updated :func:`iris.cube.Cube.name` to return a STASH code if the cube has | ||
one and no other valid names are present. This is now consistent with the | ||
summary information. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# (C) British Crown Copyright 2010 - 2016, Met Office | ||
# (C) British Crown Copyright 2010 - 2018, Met Office | ||
# | ||
# This file is part of Iris. | ||
# | ||
|
@@ -149,6 +149,7 @@ def test_contourf(self): | |
def test_contourf_nameless(self): | ||
cube = self._small() | ||
cube.standard_name = None | ||
cube.attributes['STASH'] = '' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
😢 I'm having a robust discussion with our legal department to get rid of the year in the copyright. Watch this space... 🙏 📖 👮 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Haha, that would be great - it gets me every time! At some point I'll setup PyCharm to run the style check locally... |
||
qplt.contourf(cube, coords=['grid_longitude', 'model_level_number']) | ||
self.check_graphic() | ||
|
||
|
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.
👍