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.
Files changed (15) hide show
  1. {large-image-source-tifffile-1.26.4.dev8 → large-image-source-tifffile-1.27.1.dev38}/PKG-INFO +1 -1
  2. {large-image-source-tifffile-1.26.4.dev8 → large-image-source-tifffile-1.27.1.dev38}/large_image_source_tifffile/__init__.py +14 -4
  3. {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
  4. large-image-source-tifffile-1.27.1.dev38/large_image_source_tifffile.egg-info/requires.txt +7 -0
  5. large-image-source-tifffile-1.26.4.dev8/large_image_source_tifffile.egg-info/requires.txt +0 -7
  6. {large-image-source-tifffile-1.26.4.dev8 → large-image-source-tifffile-1.27.1.dev38}/LICENSE +0 -0
  7. {large-image-source-tifffile-1.26.4.dev8 → large-image-source-tifffile-1.27.1.dev38}/README.rst +0 -0
  8. {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
  9. {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
  10. {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
  11. {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
  12. {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
  13. {large-image-source-tifffile-1.26.4.dev8 → large-image-source-tifffile-1.27.1.dev38}/pyproject.toml +0 -0
  14. {large-image-source-tifffile-1.26.4.dev8 → large-image-source-tifffile-1.27.1.dev38}/setup.cfg +0 -0
  15. {large-image-source-tifffile-1.26.4.dev8 → large-image-source-tifffile-1.27.1.dev38}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: large-image-source-tifffile
3
- Version: 1.26.4.dev8
3
+ Version: 1.27.1.dev38
4
4
  Summary: A tifffile tilesource for large_image.
5
5
  Home-page: https://github.com/girder/large_image
6
6
  Author: Kitware, Inc.
@@ -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
- logging.getLogger('tifffile.tifffile').setLevel(logging.ERROR)
45
- logging.getLogger('tifffile').setLevel(logging.ERROR)
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.dev8
3
+ Version: 1.27.1.dev38
4
4
  Summary: A tifffile tilesource for large_image.
5
5
  Home-page: https://github.com/girder/large_image
6
6
  Author: Kitware, Inc.
@@ -0,0 +1,7 @@
1
+ large-image>=1.27.1.dev38
2
+ dask[array]
3
+ tifffile[all]
4
+ zarr
5
+
6
+ [girder]
7
+ girder-large-image>=1.27.1.dev38
@@ -1,7 +0,0 @@
1
- large-image>=1.26.4.dev8
2
- dask[array]
3
- tifffile[all]
4
- zarr
5
-
6
- [girder]
7
- girder-large-image>=1.26.4.dev8