Skip to content

Commit

Permalink
Try 1 to fix doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
schlunma committed Nov 25, 2022
1 parent 35d55b6 commit 58f5195
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/src/userguide/cube_statistics.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Cube Statistics
Collapsing Entire Data Dimensions
---------------------------------

.. testsetup::
.. testsetup:: collapsing

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

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

.. doctest::
.. doctest:: collapsing

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

.. doctest::
.. doctest:: collapsing

>>> from iris.coords import CellMeasure
>>> cell_areas = CellMeasure(
Expand Down

0 comments on commit 58f5195

Please sign in to comment.