mirror of
https://github.com/wassname/scikit-image.git
synced 2026-08-03 13:11:25 +08:00
Fix file indexing in ImageCollection
This commit is contained in:
@@ -210,12 +210,12 @@ class ImageCollection(object):
|
||||
else:
|
||||
i = 0
|
||||
while True:
|
||||
i += 1
|
||||
index.append((fname, i))
|
||||
try:
|
||||
im.seek(i)
|
||||
except EOFError:
|
||||
break
|
||||
index.append((fname, i))
|
||||
i += 1
|
||||
if hasattr(im, 'fp') and im.fp:
|
||||
im.fp.close()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user