large-image-source-openjpeg 1.29.3.dev22__py3-none-any.whl → 1.29.3.dev24__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.
Potentially problematic release.
This version of large-image-source-openjpeg might be problematic. Click here for more details.
- large_image_source_openjpeg/__init__.py +18 -1
- {large_image_source_openjpeg-1.29.3.dev22.dist-info → large_image_source_openjpeg-1.29.3.dev24.dist-info}/METADATA +3 -3
- large_image_source_openjpeg-1.29.3.dev24.dist-info/RECORD +8 -0
- large_image_source_openjpeg-1.29.3.dev22.dist-info/RECORD +0 -8
- {large_image_source_openjpeg-1.29.3.dev22.dist-info → large_image_source_openjpeg-1.29.3.dev24.dist-info}/LICENSE +0 -0
- {large_image_source_openjpeg-1.29.3.dev22.dist-info → large_image_source_openjpeg-1.29.3.dev24.dist-info}/WHEEL +0 -0
- {large_image_source_openjpeg-1.29.3.dev22.dist-info → large_image_source_openjpeg-1.29.3.dev24.dist-info}/entry_points.txt +0 -0
- {large_image_source_openjpeg-1.29.3.dev22.dist-info → large_image_source_openjpeg-1.29.3.dev24.dist-info}/top_level.txt +0 -0
|
@@ -25,7 +25,6 @@ from importlib.metadata import PackageNotFoundError
|
|
|
25
25
|
from importlib.metadata import version as _importlib_version
|
|
26
26
|
from xml.etree import ElementTree
|
|
27
27
|
|
|
28
|
-
import glymur
|
|
29
28
|
import PIL.Image
|
|
30
29
|
|
|
31
30
|
import large_image
|
|
@@ -41,6 +40,23 @@ except PackageNotFoundError:
|
|
|
41
40
|
# package is not installed
|
|
42
41
|
pass
|
|
43
42
|
|
|
43
|
+
glymur = None
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
def _lazyImport():
|
|
47
|
+
"""
|
|
48
|
+
Import the glymur module. This is done when needed rather than in the module
|
|
49
|
+
initialization because it is slow.
|
|
50
|
+
"""
|
|
51
|
+
global glymur
|
|
52
|
+
|
|
53
|
+
if glymur is None:
|
|
54
|
+
try:
|
|
55
|
+
import glymur
|
|
56
|
+
except ImportError:
|
|
57
|
+
msg = 'glymur module not found.'
|
|
58
|
+
raise TileSourceError(msg)
|
|
59
|
+
|
|
44
60
|
|
|
45
61
|
warnings.filterwarnings('ignore', category=UserWarning, module='glymur')
|
|
46
62
|
|
|
@@ -88,6 +104,7 @@ class OpenjpegFileTileSource(FileTileSource, metaclass=LruCacheMetaclass):
|
|
|
88
104
|
"""
|
|
89
105
|
super().__init__(path, **kwargs)
|
|
90
106
|
|
|
107
|
+
_lazyImport()
|
|
91
108
|
self._largeImagePath = str(self._getLargeImagePath())
|
|
92
109
|
self._pixelInfo = {}
|
|
93
110
|
try:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: large-image-source-openjpeg
|
|
3
|
-
Version: 1.29.3.
|
|
3
|
+
Version: 1.29.3.dev24
|
|
4
4
|
Summary: An Openjpeg tilesource for large_image.
|
|
5
5
|
Home-page: https://github.com/girder/large_image
|
|
6
6
|
Author: Kitware, Inc.
|
|
@@ -17,10 +17,10 @@ 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.29.3.
|
|
20
|
+
Requires-Dist: large-image >=1.29.3.dev24
|
|
21
21
|
Requires-Dist: glymur >=0.8.18
|
|
22
22
|
Provides-Extra: girder
|
|
23
|
-
Requires-Dist: girder-large-image >=1.29.3.
|
|
23
|
+
Requires-Dist: girder-large-image >=1.29.3.dev24 ; extra == 'girder'
|
|
24
24
|
|
|
25
25
|
An Openjpeg tilesource for large_image.
|
|
26
26
|
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
large_image_source_openjpeg/__init__.py,sha256=coTVVtgBWXy8LrM5fMT-WLZHFWC-a23h11fXP37XZ6k,11449
|
|
2
|
+
large_image_source_openjpeg/girder_source.py,sha256=Ve15utmsZ_CJrDXIAQD2ea2yHybE1vuWbbPJMeXQCMI,1246
|
|
3
|
+
large_image_source_openjpeg-1.29.3.dev24.dist-info/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
|
|
4
|
+
large_image_source_openjpeg-1.29.3.dev24.dist-info/METADATA,sha256=A6yXk5-srVwHwcIvBcadJaKnjOnp2jMrmqyNyyWEuLs,1021
|
|
5
|
+
large_image_source_openjpeg-1.29.3.dev24.dist-info/WHEEL,sha256=Z4pYXqR_rTB7OWNDYFOm1qRk0RX6GFP2o8LgvP453Hk,91
|
|
6
|
+
large_image_source_openjpeg-1.29.3.dev24.dist-info/entry_points.txt,sha256=lTM4P2JqjANt_gPtcbMYTJVCmfPts_VxB8bQyfhryjI,190
|
|
7
|
+
large_image_source_openjpeg-1.29.3.dev24.dist-info/top_level.txt,sha256=y6bw5gBWfdaFWXtjiCH0vaHRtP8WNBhq8ugIKnwzEL0,28
|
|
8
|
+
large_image_source_openjpeg-1.29.3.dev24.dist-info/RECORD,,
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
large_image_source_openjpeg/__init__.py,sha256=C_6IsMSNHYXdiWUzusm4zTe_oP23VbTc-PR_HI9Y27k,11075
|
|
2
|
-
large_image_source_openjpeg/girder_source.py,sha256=Ve15utmsZ_CJrDXIAQD2ea2yHybE1vuWbbPJMeXQCMI,1246
|
|
3
|
-
large_image_source_openjpeg-1.29.3.dev22.dist-info/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
|
|
4
|
-
large_image_source_openjpeg-1.29.3.dev22.dist-info/METADATA,sha256=1yPb_iHVIyB8BHaNo87vZ6wgb9MNQBS1pg-8Dc4Sf7M,1021
|
|
5
|
-
large_image_source_openjpeg-1.29.3.dev22.dist-info/WHEEL,sha256=Z4pYXqR_rTB7OWNDYFOm1qRk0RX6GFP2o8LgvP453Hk,91
|
|
6
|
-
large_image_source_openjpeg-1.29.3.dev22.dist-info/entry_points.txt,sha256=lTM4P2JqjANt_gPtcbMYTJVCmfPts_VxB8bQyfhryjI,190
|
|
7
|
-
large_image_source_openjpeg-1.29.3.dev22.dist-info/top_level.txt,sha256=y6bw5gBWfdaFWXtjiCH0vaHRtP8WNBhq8ugIKnwzEL0,28
|
|
8
|
-
large_image_source_openjpeg-1.29.3.dev22.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|