mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-03 01:43:24 +08:00
Add tifffile to a new external package.
This commit is contained in:
+4
@@ -0,0 +1,4 @@
|
||||
try:
|
||||
from tifffile import *
|
||||
except ImportError:
|
||||
from ._tifffile import *
|
||||
+4839
File diff suppressed because it is too large
Load Diff
@@ -14,7 +14,7 @@ except ImportError:
|
||||
from skimage.util import img_as_ubyte, img_as_uint
|
||||
|
||||
from six import string_types
|
||||
from tifffile import imread as tif_imread, imsave as tif_imsave
|
||||
from skimage.external.tifffile import imread as tif_imread, imsave as tif_imsave
|
||||
|
||||
|
||||
def imread(fname, dtype=None):
|
||||
|
||||
@@ -1,6 +1 @@
|
||||
try:
|
||||
from tifffile import imread, imsave
|
||||
except ImportError:
|
||||
raise ImportError("The tifffile module could not be found.\n"
|
||||
"It can be obtained at "
|
||||
"<http://www.lfd.uci.edu/~gohlke/code/tifffile.py>\n")
|
||||
from skimage.external.tifffile import imread, imsave
|
||||
|
||||
Reference in New Issue
Block a user