Skip to content

Commit 58f5195

Browse files
committed
Try 1 to fix doctest
1 parent 35d55b6 commit 58f5195

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/src/userguide/cube_statistics.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Cube Statistics
1414
Collapsing Entire Data Dimensions
1515
---------------------------------
1616

17-
.. testsetup::
17+
.. testsetup:: collapsing
1818

1919
import iris
2020
filename = iris.sample_data_path('uk_hires.pp')
@@ -125,7 +125,7 @@ in order to calculate the area of the grid boxes::
125125

126126
These areas can now be passed to the ``collapsed`` method as weights:
127127

128-
.. doctest::
128+
.. doctest:: collapsing
129129

130130
>>> new_cube = cube.collapsed(['grid_longitude', 'grid_latitude'], iris.analysis.MEAN, weights=grid_areas)
131131
>>> print(new_cube)
@@ -161,7 +161,7 @@ In addition to plain arrays, weights can also be given as cubes or (names of)
161161
This has the advantage of correct unit handling, e.g., for area-weighted sums
162162
the units of the resulting cube are multiplied by an area unit:
163163

164-
.. doctest::
164+
.. doctest:: collapsing
165165

166166
>>> from iris.coords import CellMeasure
167167
>>> cell_areas = CellMeasure(

0 commit comments

Comments
 (0)