large-image-source-tiff 1.30.3__py3-none-any.whl → 1.30.3.dev3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -30,9 +30,7 @@ import tifftools
30
30
 
31
31
  from large_image.cache_util import LruCacheMetaclass, methodcache
32
32
  from large_image.constants import TILE_FORMAT_NUMPY, TILE_FORMAT_PIL, SourcePriority
33
- from large_image.exceptions import (TileSourceError,
34
- TileSourceFileNotFoundError,
35
- TileSourceMalformedError)
33
+ from large_image.exceptions import TileSourceError, TileSourceFileNotFoundError
36
34
  from large_image.tilesource import FileTileSource, nearPowerOfTwo
37
35
 
38
36
  from . import tiff_reader
@@ -92,8 +90,6 @@ class TiffFileTileSource(FileTileSource, metaclass=LruCacheMetaclass):
92
90
  try:
93
91
  self._initWithTiffTools()
94
92
  return
95
- except TileSourceMalformedError:
96
- raise
97
93
  except Exception as exc:
98
94
  self.logger.debug('Cannot read with tifftools route; %r', exc)
99
95
  lastException = exc
@@ -367,10 +363,6 @@ class TiffFileTileSource(FileTileSource, metaclass=LruCacheMetaclass):
367
363
  if len(subifds) != 1:
368
364
  msg = 'When stored in subifds, each subifd should be a single ifd.'
369
365
  raise TileSourceError(msg)
370
- if (tifftools.Tag.StripOffsets.value not in subifds[0]['tags'] and
371
- tifftools.Tag.TileOffsets.value not in subifds[0]['tags']):
372
- msg = 'Subifd has no strip or tile offsets.'
373
- raise TileSourceMalformedError(msg)
374
366
  level = self._levelFromIfd(subifds[0], info['ifds'][0])
375
367
  if level < self.levels - 1 and frames[-1]['dirs'][level] is None:
376
368
  frames[-1]['dirs'][level] = (idx, subidx + 1)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: large-image-source-tiff
3
- Version: 1.30.3
3
+ Version: 1.30.3.dev3
4
4
  Summary: A TIFF tilesource for large_image.
5
5
  Home-page: https://github.com/girder/large_image
6
6
  Author: Kitware, Inc.
@@ -19,13 +19,13 @@ Classifier: Programming Language :: Python :: 3.13
19
19
  Requires-Python: >=3.8
20
20
  Description-Content-Type: text/x-rst
21
21
  License-File: LICENSE
22
- Requires-Dist: large-image>=1.30.3
22
+ Requires-Dist: large-image >=1.30.3.dev3
23
23
  Requires-Dist: pylibtiff
24
- Requires-Dist: tifftools>=1.2.0
24
+ Requires-Dist: tifftools >=1.2.0
25
25
  Provides-Extra: all
26
- Requires-Dist: pylibjpeg-openjpeg; extra == "all"
26
+ Requires-Dist: pylibjpeg-openjpeg ; extra == 'all'
27
27
  Provides-Extra: girder
28
- Requires-Dist: girder-large-image>=1.30.3; extra == "girder"
28
+ Requires-Dist: girder-large-image >=1.30.3.dev3 ; extra == 'girder'
29
29
 
30
30
  A TIFF tilesource for large_image.
31
31
 
@@ -0,0 +1,10 @@
1
+ large_image_source_tiff/__init__.py,sha256=XYES_swxd926-yAtoess0yluClGVAFN2RUou0dUglpM,35597
2
+ large_image_source_tiff/exceptions.py,sha256=NgdwloaDCtbtUMe2BU2lXEU8IwQSYtaokIwGIFypCps,617
3
+ large_image_source_tiff/girder_source.py,sha256=Dp2e3O4VTANYXZI_eybgzs5BcyuMcw2-MAzCUJ8zzPg,1031
4
+ large_image_source_tiff/tiff_reader.py,sha256=Gqzv3ct5YDicho9l23a0Gjoyln7TJNEbqAov4RnHRGI,39143
5
+ large_image_source_tiff-1.30.3.dev3.dist-info/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
6
+ large_image_source_tiff-1.30.3.dev3.dist-info/METADATA,sha256=pACflGjptalDJaiSb-wphpxgnRiBQ81lcDgyGsr_phk,1190
7
+ large_image_source_tiff-1.30.3.dev3.dist-info/WHEEL,sha256=OVMc5UfuAQiSplgO0_WdW7vXVGAt9Hdd6qtN4HotdyA,91
8
+ large_image_source_tiff-1.30.3.dev3.dist-info/entry_points.txt,sha256=iZ43sIcj98SND7nDUC-_4qroBL6apyXN4iSbPXZ8LE4,166
9
+ large_image_source_tiff-1.30.3.dev3.dist-info/top_level.txt,sha256=QRx_D2oeiOOz_5FlBOAoDPF-E4Q-aFmerUWlaeP14B8,24
10
+ large_image_source_tiff-1.30.3.dev3.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.6.0)
2
+ Generator: setuptools (75.2.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,10 +0,0 @@
1
- large_image_source_tiff/__init__.py,sha256=lUgwD58vyfM3QOGY3913jfneHUzSYIkui0YlB2-bhzY,36060
2
- large_image_source_tiff/exceptions.py,sha256=NgdwloaDCtbtUMe2BU2lXEU8IwQSYtaokIwGIFypCps,617
3
- large_image_source_tiff/girder_source.py,sha256=Dp2e3O4VTANYXZI_eybgzs5BcyuMcw2-MAzCUJ8zzPg,1031
4
- large_image_source_tiff/tiff_reader.py,sha256=Gqzv3ct5YDicho9l23a0Gjoyln7TJNEbqAov4RnHRGI,39143
5
- large_image_source_tiff-1.30.3.dist-info/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
6
- large_image_source_tiff-1.30.3.dist-info/METADATA,sha256=bDGvRjMXvVvRxLKfOQdoqJzBMdSUh9lEZN_VTas4u00,1170
7
- large_image_source_tiff-1.30.3.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
8
- large_image_source_tiff-1.30.3.dist-info/entry_points.txt,sha256=iZ43sIcj98SND7nDUC-_4qroBL6apyXN4iSbPXZ8LE4,166
9
- large_image_source_tiff-1.30.3.dist-info/top_level.txt,sha256=QRx_D2oeiOOz_5FlBOAoDPF-E4Q-aFmerUWlaeP14B8,24
10
- large_image_source_tiff-1.30.3.dist-info/RECORD,,