File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 5
5
6
6
7
7
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
9
9
10
10
This should be True for numpy < 1.12, False otherwise.
11
11
"""
@@ -15,5 +15,5 @@ def _memmap_after_ufunc():
15
15
return mm_preserved
16
16
17
17
18
- # True if ufunc on memmap retuns a memmap
18
+ # True if ufunc on memmap always returns a memmap
19
19
VIRAL_MEMMAP = _memmap_after_ufunc ()
Original file line number Diff line number Diff line change @@ -342,7 +342,7 @@ class MmapImageMixin(object):
342
342
check_mmap_mode = True
343
343
344
344
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
346
346
347
347
Subclasses can do anything to return an image, including loading a
348
348
pre-existing image from disk.
@@ -351,12 +351,10 @@ def get_disk_image(self):
351
351
-------
352
352
img : class:`SpatialImage` instance
353
353
fname : str
354
- Image filename
354
+ Image filename.
355
355
has_scaling : bool
356
356
True if the image array has scaling to apply to the raw image array
357
357
data, False otherwise.
358
-
359
- Notes
360
358
"""
361
359
img_klass = self .image_class
362
360
shape = (3 , 4 , 2 )
You can’t perform that action at this time.
0 commit comments