From 1cdf70a585b1e6b375368bde552b0808a6a9996a Mon Sep 17 00:00:00 2001 From: Paul McCarthy <pauldmccarthy@gmail.com> Date: Thu, 12 Oct 2017 18:00:18 +0100 Subject: [PATCH] Doc adjustment --- fsl/data/atlases.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fsl/data/atlases.py b/fsl/data/atlases.py index 3bd1da02b..51d2f507e 100644 --- a/fsl/data/atlases.py +++ b/fsl/data/atlases.py @@ -570,7 +570,9 @@ class AtlasDescription(object): """Find an :class:`.AtlasLabel` either by ``index``, or by ``value``. Exactly one of ``index`` or ``value`` may be specified - a - ``ValueError`` is raised otherwise. + ``ValueError`` is raised otherwise. If an invalid ``index`` or + ``value`` is specified, an ``IndexError`` or ``KeyError`` will be + raised. """ if (index is None and value is None) or \ (index is not None and value is not None): -- GitLab