From ad8c94fcaf6c6225ab1ac9686a64417652dd777c Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Mon, 30 Mar 2015 21:41:44 -0500 Subject: [PATCH] Fix handling of non-gif and tiff files --- skimage/io/collection.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/skimage/io/collection.py b/skimage/io/collection.py index cdcb31d6..b36c95f4 100644 --- a/skimage/io/collection.py +++ b/skimage/io/collection.py @@ -135,7 +135,7 @@ class ImageCollection(object): ic = ImageCollection('/tmp/*.png', load_func=imread_convert) For files with multiple images, the images will be flattened into a list - and added to the list of available images. In this case, ``load_func`` + and added to the list of available images. In this case, ``load_func`` should accept the keyword argument ``img_num``. Examples @@ -222,7 +222,7 @@ class ImageCollection(object): if hasattr(im, 'fp') and im.fp: im.fp.close() else: - index += (fname, 0) + index += [(fname, 0)] self._frame_index = index return len(index)