Skip to content

Commit 2861beb

Browse files
committed
review
1 parent d6f5032 commit 2861beb

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/iris/cube.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1836,9 +1836,8 @@ def summary(self, shorten=False, name_padding=35):
18361836
nameunit = '{name} / ({units})'.format(name=self.name(),
18371837
units=self.units)
18381838
# If all unknown and a STASH attribute exists, use it.
1839-
if (nameunit == 'unknown / (unknown)' and
1840-
'STASH' in self.attributes):
1841-
nameunit = '{}'.format(self.attributes.get('STASH'))
1839+
if nameunit == 'unknown / (unknown)' and 'STASH' in self.attributes:
1840+
nameunit = '{}'.format(self.attributes['STASH'])
18421841
cube_header = '{nameunit!s:{length}} ({dimension})'.format(
18431842
length=name_padding,
18441843
nameunit=nameunit,

0 commit comments

Comments
 (0)