mirror of
https://github.com/wassname/scikit-image.git
synced 2026-09-12 12:50:49 +08:00
Clean up PIL plugin and handle more warnings
Use the pil plugin to load data files Fix install_requires string formatting Dead end commit Make all tools executable Remove debug print Suppress PIL resourcewarnings Handle a few more warnings
This commit is contained in:
@@ -8,7 +8,7 @@ For more images, see
|
||||
|
||||
import os as _os
|
||||
|
||||
from ..io import imread
|
||||
from ..io import imread, use_plugin
|
||||
from skimage import data_dir
|
||||
|
||||
|
||||
@@ -42,6 +42,7 @@ def load(f):
|
||||
img : ndarray
|
||||
Image loaded from skimage.data_dir.
|
||||
"""
|
||||
use_plugin('pil')
|
||||
return imread(_os.path.join(data_dir, f))
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user