large-image-source-tiff 1.26.2.dev34__tar.gz → 1.26.3__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {large-image-source-tiff-1.26.2.dev34 → large-image-source-tiff-1.26.3}/PKG-INFO +1 -1
- {large-image-source-tiff-1.26.2.dev34 → large-image-source-tiff-1.26.3}/large_image_source_tiff/__init__.py +4 -5
- {large-image-source-tiff-1.26.2.dev34 → large-image-source-tiff-1.26.3}/large_image_source_tiff/tiff_reader.py +2 -2
- {large-image-source-tiff-1.26.2.dev34 → large-image-source-tiff-1.26.3}/large_image_source_tiff.egg-info/PKG-INFO +1 -1
- large-image-source-tiff-1.26.3/large_image_source_tiff.egg-info/requires.txt +6 -0
- large-image-source-tiff-1.26.2.dev34/large_image_source_tiff.egg-info/requires.txt +0 -6
- {large-image-source-tiff-1.26.2.dev34 → large-image-source-tiff-1.26.3}/LICENSE +0 -0
- {large-image-source-tiff-1.26.2.dev34 → large-image-source-tiff-1.26.3}/README.rst +0 -0
- {large-image-source-tiff-1.26.2.dev34 → large-image-source-tiff-1.26.3}/large_image_source_tiff/exceptions.py +0 -0
- {large-image-source-tiff-1.26.2.dev34 → large-image-source-tiff-1.26.3}/large_image_source_tiff/girder_source.py +0 -0
- {large-image-source-tiff-1.26.2.dev34 → large-image-source-tiff-1.26.3}/large_image_source_tiff.egg-info/SOURCES.txt +0 -0
- {large-image-source-tiff-1.26.2.dev34 → large-image-source-tiff-1.26.3}/large_image_source_tiff.egg-info/dependency_links.txt +0 -0
- {large-image-source-tiff-1.26.2.dev34 → large-image-source-tiff-1.26.3}/large_image_source_tiff.egg-info/entry_points.txt +0 -0
- {large-image-source-tiff-1.26.2.dev34 → large-image-source-tiff-1.26.3}/large_image_source_tiff.egg-info/top_level.txt +0 -0
- {large-image-source-tiff-1.26.2.dev34 → large-image-source-tiff-1.26.3}/pyproject.toml +0 -0
- {large-image-source-tiff-1.26.2.dev34 → large-image-source-tiff-1.26.3}/setup.cfg +0 -0
- {large-image-source-tiff-1.26.2.dev34 → large-image-source-tiff-1.26.3}/setup.py +0 -0
@@ -28,7 +28,6 @@ import numpy as np
|
|
28
28
|
import PIL.Image
|
29
29
|
import tifftools
|
30
30
|
|
31
|
-
from large_image import config
|
32
31
|
from large_image.cache_util import LruCacheMetaclass, methodcache
|
33
32
|
from large_image.constants import TILE_FORMAT_NUMPY, TILE_FORMAT_PIL, SourcePriority
|
34
33
|
from large_image.exceptions import TileSourceError, TileSourceFileNotFoundError
|
@@ -89,7 +88,7 @@ class TiffFileTileSource(FileTileSource, metaclass=LruCacheMetaclass):
|
|
89
88
|
self._initWithTiffTools()
|
90
89
|
return
|
91
90
|
except Exception as exc:
|
92
|
-
|
91
|
+
self.logger.debug('Cannot read with tifftools route; %r', exc)
|
93
92
|
|
94
93
|
alldir = []
|
95
94
|
try:
|
@@ -109,7 +108,7 @@ class TiffFileTileSource(FileTileSource, metaclass=LruCacheMetaclass):
|
|
109
108
|
raise TileSourceFileNotFoundError(self._largeImagePath) from None
|
110
109
|
msg = "File %s didn't meet requirements for tile source: %s" % (
|
111
110
|
self._largeImagePath, lastException)
|
112
|
-
|
111
|
+
self.logger.debug(msg)
|
113
112
|
raise TileSourceError(msg)
|
114
113
|
# Sort the known directories by image area (width * height). Given
|
115
114
|
# equal area, sort by the level.
|
@@ -393,7 +392,7 @@ class TiffFileTileSource(FileTileSource, metaclass=LruCacheMetaclass):
|
|
393
392
|
self._skippedLevels = maxMissing
|
394
393
|
if maxMissing >= self._maxSkippedLevels:
|
395
394
|
if warn:
|
396
|
-
|
395
|
+
self.logger.warning(
|
397
396
|
'Tiff image is missing many lower resolution levels (%d). '
|
398
397
|
'It will be inefficient to read lower resolution tiles.', maxMissing)
|
399
398
|
self._inefficientWarning = True
|
@@ -501,7 +500,7 @@ class TiffFileTileSource(FileTileSource, metaclass=LruCacheMetaclass):
|
|
501
500
|
except Exception:
|
502
501
|
# If we fail for other reasons, don't raise an exception, but log
|
503
502
|
# what happened.
|
504
|
-
|
503
|
+
self.logger.exception(
|
505
504
|
'Could not use non-tiled TIFF image as an associated image.')
|
506
505
|
|
507
506
|
def _parseImageXml(self, xml, topImage):
|
@@ -43,7 +43,7 @@ except ValueError as exc:
|
|
43
43
|
# ImportError. We convert this to an ImportError, so that we will print a
|
44
44
|
# more lucid error message and just fail to load this one tile source
|
45
45
|
# instead of failing to load the whole plugin.
|
46
|
-
config.
|
46
|
+
config.getLogger().warning(
|
47
47
|
'Failed to import libtiff; try upgrading the python module (%s)' % exc)
|
48
48
|
raise ImportError(str(exc))
|
49
49
|
|
@@ -97,7 +97,7 @@ class TiledTiffDirectory:
|
|
97
97
|
:raises: InvalidOperationTiffError or IOTiffError or
|
98
98
|
ValidationTiffError
|
99
99
|
"""
|
100
|
-
self.logger = config.
|
100
|
+
self.logger = config.getLogger()
|
101
101
|
# create local cache to store Jpeg tables and getTileByteCountsType
|
102
102
|
self.cache = cachetools.LRUCache(10)
|
103
103
|
self._mustBeTiled = mustBeTiled
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|