Skip to content

Commit b5343c1

Browse files
committed
DOC: typos spotted by Chris M
Thanks for your eagle eye.
1 parent 5cd1994 commit b5343c1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

nibabel/dataobj_images.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def get_data(self, caching='fill'):
138138
(no reference to the array). If the cache is full, "unchanged" leaves
139139
the cache full and returns the cached array reference.
140140
141-
The cache can effect the behavior of the image, because if the cache is
141+
The cache can affect the behavior of the image, because if the cache is
142142
full, or you have an array image, then modifying the returned array
143143
will modify the result of future calls to ``get_data()``. For example
144144
you might do this:

nibabel/tests/test_image_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ def validate_data_interface(self, imaker, params):
208208
assert_true(is_proxy(img.dataobj))
209209
# Confirm it is not a numpy array
210210
assert_false(isinstance(img.dataobj, np.ndarray))
211-
# Confirm it can be converted to a numpy array with is_array
211+
# Confirm it can be converted to a numpy array with asarray
212212
proxy_data = np.asarray(img.dataobj)
213213
proxy_copy = proxy_data.copy()
214214
# Not yet cached, proxy image: in_memory is False

0 commit comments

Comments
 (0)