Skip to content

Commit 783a0d0

Browse files
committed
DOC: Update test_image_api docstring for clarity, consistency
1 parent c8d93e6 commit 783a0d0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

nibabel/tests/test_image_api.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
* ``img.shape`` (shape of data as read with ``np.array(img.dataobj)``
1515
* ``img.get_fdata()`` (returns floating point data as read with
1616
``np.array(img.dataobj)`` and the cast to float);
17-
* ``img.uncache()`` (``img.get_fdata()`` and ``img.get_data()`` (deprecated) are
18-
allowed to cache the result of the array creation. If they do, this call empties
19-
that cache. Implement this as a no-op if ``get_fdata()``, ``get_data`` do not
20-
cache.
17+
* ``img.uncache()`` (``img.get_fdata()`` (recommended) and ``img.get_data()``
18+
(deprecated) are allowed to cache the result of the array creation. If they
19+
do, this call empties that cache. Implement this as a no-op if
20+
``get_fdata()``, ``get_data()`` do not cache.)
2121
* ``img[something]`` generates an informative TypeError
2222
* ``img.in_memory`` is True for an array image, and for a proxy image that is
2323
cached, but False otherwise.

0 commit comments

Comments
 (0)