large-image-source-tifffile 1.26.4.dev10__py3-none-any.whl → 1.26.4.dev14__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- large_image_source_tifffile/__init__.py +14 -4
- {large_image_source_tifffile-1.26.4.dev10.dist-info → large_image_source_tifffile-1.26.4.dev14.dist-info}/METADATA +3 -3
- large_image_source_tifffile-1.26.4.dev14.dist-info/RECORD +8 -0
- large_image_source_tifffile-1.26.4.dev10.dist-info/RECORD +0 -8
- {large_image_source_tifffile-1.26.4.dev10.dist-info → large_image_source_tifffile-1.26.4.dev14.dist-info}/LICENSE +0 -0
- {large_image_source_tifffile-1.26.4.dev10.dist-info → large_image_source_tifffile-1.26.4.dev14.dist-info}/WHEEL +0 -0
- {large_image_source_tifffile-1.26.4.dev10.dist-info → large_image_source_tifffile-1.26.4.dev14.dist-info}/entry_points.txt +0 -0
- {large_image_source_tifffile-1.26.4.dev10.dist-info → large_image_source_tifffile-1.26.4.dev14.dist-info}/top_level.txt +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)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: large-image-source-tifffile
|
3
|
-
Version: 1.26.4.
|
3
|
+
Version: 1.26.4.dev14
|
4
4
|
Summary: A tifffile tilesource for large_image.
|
5
5
|
Home-page: https://github.com/girder/large_image
|
6
6
|
Author: Kitware, Inc.
|
@@ -17,12 +17,12 @@ Classifier: Programming Language :: Python :: 3.11
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.12
|
18
18
|
Requires-Python: >=3.8
|
19
19
|
License-File: LICENSE
|
20
|
-
Requires-Dist: large-image >=1.26.4.
|
20
|
+
Requires-Dist: large-image >=1.26.4.dev14
|
21
21
|
Requires-Dist: dask[array]
|
22
22
|
Requires-Dist: tifffile[all]
|
23
23
|
Requires-Dist: zarr
|
24
24
|
Provides-Extra: girder
|
25
|
-
Requires-Dist: girder-large-image >=1.26.4.
|
25
|
+
Requires-Dist: girder-large-image >=1.26.4.dev14 ; extra == 'girder'
|
26
26
|
|
27
27
|
A tifffile tilesource for large_image.
|
28
28
|
|
@@ -0,0 +1,8 @@
|
|
1
|
+
large_image_source_tifffile/__init__.py,sha256=7jHLRfFXszTDfTcD6aRylJthE03lK5FCHh4rKkHtHEw,24668
|
2
|
+
large_image_source_tifffile/girder_source.py,sha256=8YsxpSK_UzbAcpjn6fIMlgKye2FchkB8_HTSQV0FpRA,1064
|
3
|
+
large_image_source_tifffile-1.26.4.dev14.dist-info/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
|
4
|
+
large_image_source_tifffile-1.26.4.dev14.dist-info/METADATA,sha256=BQUv-6ALvL7meeapC-WjTCNRAJpvot6GkRfmPsKSIDc,1064
|
5
|
+
large_image_source_tifffile-1.26.4.dev14.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
6
|
+
large_image_source_tifffile-1.26.4.dev14.dist-info/entry_points.txt,sha256=aILCN5f7-Zj8-WRXcABxCQvqJv9VLTvqRhZ_7HEyokc,190
|
7
|
+
large_image_source_tifffile-1.26.4.dev14.dist-info/top_level.txt,sha256=feOAsix2Rzy6mjy2Ua-N0-L6tlKsgvLdRhO6Hd8_ZFs,28
|
8
|
+
large_image_source_tifffile-1.26.4.dev14.dist-info/RECORD,,
|
@@ -1,8 +0,0 @@
|
|
1
|
-
large_image_source_tifffile/__init__.py,sha256=pLN0OWZoBhxJjNm0R29xNmJ61eQbMJe0tDuyvD6jB0E,24144
|
2
|
-
large_image_source_tifffile/girder_source.py,sha256=8YsxpSK_UzbAcpjn6fIMlgKye2FchkB8_HTSQV0FpRA,1064
|
3
|
-
large_image_source_tifffile-1.26.4.dev10.dist-info/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
|
4
|
-
large_image_source_tifffile-1.26.4.dev10.dist-info/METADATA,sha256=bkh5vkGMPSd3-FSIHCYW6OEvfEJ4Y1iyUfWwbYNVPjM,1064
|
5
|
-
large_image_source_tifffile-1.26.4.dev10.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
6
|
-
large_image_source_tifffile-1.26.4.dev10.dist-info/entry_points.txt,sha256=aILCN5f7-Zj8-WRXcABxCQvqJv9VLTvqRhZ_7HEyokc,190
|
7
|
-
large_image_source_tifffile-1.26.4.dev10.dist-info/top_level.txt,sha256=feOAsix2Rzy6mjy2Ua-N0-L6tlKsgvLdRhO6Hd8_ZFs,28
|
8
|
-
large_image_source_tifffile-1.26.4.dev10.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|