mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-02 12:14:59 +08:00
Fix multi image doctest
This commit is contained in:
@@ -96,18 +96,14 @@ class MultiImage(object):
|
||||
--------
|
||||
>>> from skimage import data_dir
|
||||
|
||||
>>> img = MultiImage(data_dir + '/multipage.tif')
|
||||
>>> len(img)
|
||||
>>> img = MultiImage(data_dir + '/multipage.tif') # doctest: +SKIP
|
||||
>>> len(img) # doctest: +SKIP
|
||||
2
|
||||
>>> for frame in img:
|
||||
... print(frame.shape)
|
||||
>>> for frame in img: # doctest: +SKIP
|
||||
... print(frame.shape) # doctest: +SKIP
|
||||
(15, 10)
|
||||
(15, 10)
|
||||
|
||||
The two frames in this image can be shown with matplotlib:
|
||||
|
||||
.. plot:: show_collection.py
|
||||
|
||||
"""
|
||||
def __init__(self, filename, conserve_memory=True, dtype=None):
|
||||
"""Load a multi-img."""
|
||||
|
||||
Reference in New Issue
Block a user