Skip to content

Commit

Permalink
Update docs CubeList.extract method (SciTools#3694)
Browse files Browse the repository at this point in the history
  • Loading branch information
lbdreyer authored Apr 3, 2020
1 parent c5ecefb commit f5feb28
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
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

0 comments on commit f5feb28

Please sign in to comment.