Skip to content

Commit a4cc417

Browse files
committed
DOC: fixes suggested by Marc-Alexandre
Fixing some typos and stray text, and a little extra rephrasing on top.
1 parent e8b9d82 commit a4cc417

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

nibabel/testing/np_features.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66

77
def _memmap_after_ufunc():
8-
""" Return True if memmap arrays always return memmap from ufuncs
8+
""" Return True if ufuncs on memmap arrays always return memmap arrays
99
1010
This should be True for numpy < 1.12, False otherwise.
1111
"""
@@ -15,5 +15,5 @@ def _memmap_after_ufunc():
1515
return mm_preserved
1616

1717

18-
# True if ufunc on memmap retuns a memmap
18+
# True if ufunc on memmap always returns a memmap
1919
VIRAL_MEMMAP = _memmap_after_ufunc()

nibabel/tests/test_spatialimages.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ class MmapImageMixin(object):
342342
check_mmap_mode = True
343343

344344
def get_disk_image(self):
345-
""" Return an image and an image filname, and scaling bool to test against
345+
""" Return image, image filename, and flag for required scaling
346346
347347
Subclasses can do anything to return an image, including loading a
348348
pre-existing image from disk.
@@ -351,12 +351,10 @@ def get_disk_image(self):
351351
-------
352352
img : class:`SpatialImage` instance
353353
fname : str
354-
Image filename
354+
Image filename.
355355
has_scaling : bool
356356
True if the image array has scaling to apply to the raw image array
357357
data, False otherwise.
358-
359-
Notes
360358
"""
361359
img_klass = self.image_class
362360
shape = (3, 4, 2)

0 commit comments

Comments
 (0)