Skip to content

Commit 4e1867d

Browse files
committed
Tiny fixes.
1 parent 9a5d9d3 commit 4e1867d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lib/iris/coords.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ def summary(
290290
max_values : int or None, default = None
291291
If more than this many data values, print truncated data arrays.
292292
If 0, print only the shape.
293-
Defaults to 5 if `shorten` is True, else 20.
293+
Defaults to 5 if `shorten` is True, else 15.
294294
convert_dates : bool, default = True
295295
Print values in date form, if the units has a calendar.
296296
If not, print raw number values.

lib/iris/tests/unit/coords/test__DimensionalMetadata.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -997,6 +997,7 @@ def test_max_array_width__default(self):
997997
self.assertLines(expected, result)
998998

999999
with np.printoptions(linewidth=35):
1000+
# Show that, when unset, it follows the numpy setting
10001001
result = coord.summary()
10011002
expected = [
10021003
"AuxCoord : x / (m)",
@@ -1027,7 +1028,7 @@ def test_max_array_width__set(self):
10271028
self.assertLines(expected, result)
10281029

10291030
with np.printoptions(linewidth=999):
1030-
# Show that when set, it ignores the numpy setting
1031+
# Show that, when set, it ignores the numpy setting
10311032
result = coord.summary(max_array_width=35)
10321033
self.assertLines(expected, result)
10331034

0 commit comments

Comments
 (0)