large-image-source-tifffile 1.26.4.dev8__tar.gz → 1.27.1.dev38__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {large-image-source-tifffile-1.26.4.dev8 → large-image-source-tifffile-1.27.1.dev38}/PKG-INFO +1 -1
- {large-image-source-tifffile-1.26.4.dev8 → large-image-source-tifffile-1.27.1.dev38}/large_image_source_tifffile/__init__.py +14 -4
- {large-image-source-tifffile-1.26.4.dev8 → large-image-source-tifffile-1.27.1.dev38}/large_image_source_tifffile.egg-info/PKG-INFO +1 -1
- large-image-source-tifffile-1.27.1.dev38/large_image_source_tifffile.egg-info/requires.txt +7 -0
- large-image-source-tifffile-1.26.4.dev8/large_image_source_tifffile.egg-info/requires.txt +0 -7
- {large-image-source-tifffile-1.26.4.dev8 → large-image-source-tifffile-1.27.1.dev38}/LICENSE +0 -0
- {large-image-source-tifffile-1.26.4.dev8 → large-image-source-tifffile-1.27.1.dev38}/README.rst +0 -0
- {large-image-source-tifffile-1.26.4.dev8 → large-image-source-tifffile-1.27.1.dev38}/large_image_source_tifffile/girder_source.py +0 -0
- {large-image-source-tifffile-1.26.4.dev8 → large-image-source-tifffile-1.27.1.dev38}/large_image_source_tifffile.egg-info/SOURCES.txt +0 -0
- {large-image-source-tifffile-1.26.4.dev8 → large-image-source-tifffile-1.27.1.dev38}/large_image_source_tifffile.egg-info/dependency_links.txt +0 -0
- {large-image-source-tifffile-1.26.4.dev8 → large-image-source-tifffile-1.27.1.dev38}/large_image_source_tifffile.egg-info/entry_points.txt +0 -0
- {large-image-source-tifffile-1.26.4.dev8 → large-image-source-tifffile-1.27.1.dev38}/large_image_source_tifffile.egg-info/top_level.txt +0 -0
- {large-image-source-tifffile-1.26.4.dev8 → large-image-source-tifffile-1.27.1.dev38}/pyproject.toml +0 -0
- {large-image-source-tifffile-1.26.4.dev8 → large-image-source-tifffile-1.27.1.dev38}/setup.cfg +0 -0
- {large-image-source-tifffile-1.26.4.dev8 → large-image-source-tifffile-1.27.1.dev38}/setup.py +0 -0
@@ -24,6 +24,13 @@ except PackageNotFoundError:
|
|
24
24
|
pass
|
25
25
|
|
26
26
|
|
27
|
+
class checkForMissingDataHandler(logging.Handler):
|
28
|
+
def emit(self, record):
|
29
|
+
msg = record.getMessage()
|
30
|
+
if 'Missing data are zeroed' in msg or 'OME series expected ' in msg:
|
31
|
+
raise TileSourceError(record.getMessage())
|
32
|
+
|
33
|
+
|
27
34
|
def _lazyImport():
|
28
35
|
"""
|
29
36
|
Import the tifffile module. This is done when needed rather than in the
|
@@ -41,8 +48,13 @@ def _lazyImport():
|
|
41
48
|
tifffile = None
|
42
49
|
msg = 'tifffile module is too old.'
|
43
50
|
raise TileSourceError(msg)
|
44
|
-
|
45
|
-
|
51
|
+
# The missing data handler consumes most warnings, but throws if a
|
52
|
+
# warning about missing data occurs
|
53
|
+
# The tifffile.tifffile logger is in older versions of tifffile
|
54
|
+
logging.getLogger('tifffile.tifffile').setLevel(logging.WARNING)
|
55
|
+
logging.getLogger('tifffile.tifffile').addHandler(checkForMissingDataHandler())
|
56
|
+
logging.getLogger('tifffile').setLevel(logging.WARNING)
|
57
|
+
logging.getLogger('tifffile').addHandler(checkForMissingDataHandler())
|
46
58
|
|
47
59
|
|
48
60
|
def et_findall(tag, text):
|
@@ -498,8 +510,6 @@ class TifffileFileTileSource(FileTileSource, metaclass=LruCacheMetaclass):
|
|
498
510
|
if sidx not in self._zarrcache:
|
499
511
|
if len(self._zarrcache) > 10:
|
500
512
|
self._zarrcache = {}
|
501
|
-
if self.frames > 1:
|
502
|
-
series.keyframe.nodata = None
|
503
513
|
za = zarr.open(series.aszarr(), mode='r')
|
504
514
|
hasgbs = hasattr(za[0], 'get_basic_selection')
|
505
515
|
self._zarrcache[sidx] = (za, hasgbs)
|
{large-image-source-tifffile-1.26.4.dev8 → large-image-source-tifffile-1.27.1.dev38}/LICENSE
RENAMED
File without changes
|
{large-image-source-tifffile-1.26.4.dev8 → large-image-source-tifffile-1.27.1.dev38}/README.rst
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{large-image-source-tifffile-1.26.4.dev8 → large-image-source-tifffile-1.27.1.dev38}/pyproject.toml
RENAMED
File without changes
|
{large-image-source-tifffile-1.26.4.dev8 → large-image-source-tifffile-1.27.1.dev38}/setup.cfg
RENAMED
File without changes
|
{large-image-source-tifffile-1.26.4.dev8 → large-image-source-tifffile-1.27.1.dev38}/setup.py
RENAMED
File without changes
|