Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* Updated the documentation for the :meth:`iris.cube.CubeList.extract` method, to specify when a single cube, as opposed to a CubeList, may be returned.
3 changes: 2 additions & 1 deletion lib/iris/cube.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,8 @@ def extract(self, constraints, strict=False):

* strict - boolean
If strict is True, then there must be exactly one cube which is
filtered per constraint.
filtered per constraint. Note: if a single constraint is given, a
Cube is returned rather than a CubeList.

"""
return self._extract_and_merge(
Expand Down