Glymur 0.14.2__py3-none-any.whl → 0.14.5__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.
- glymur/_core_converter.py +2 -6
- glymur/jp2box.py +1 -1
- glymur/jp2k.py +7 -6
- glymur/jp2kr.py +6 -10
- glymur/options.py +3 -4
- glymur/version.py +2 -2
- {glymur-0.14.2.dist-info → glymur-0.14.5.dist-info}/METADATA +2 -1
- {glymur-0.14.2.dist-info → glymur-0.14.5.dist-info}/RECORD +12 -12
- {glymur-0.14.2.dist-info → glymur-0.14.5.dist-info}/WHEEL +1 -1
- {glymur-0.14.2.dist-info → glymur-0.14.5.dist-info}/entry_points.txt +0 -0
- {glymur-0.14.2.dist-info → glymur-0.14.5.dist-info}/licenses/LICENSE.txt +0 -0
- {glymur-0.14.2.dist-info → glymur-0.14.5.dist-info}/top_level.txt +0 -0
glymur/_core_converter.py
CHANGED
|
@@ -9,7 +9,7 @@ from uuid import UUID
|
|
|
9
9
|
|
|
10
10
|
# local imports
|
|
11
11
|
from . import jp2box
|
|
12
|
-
from .lib.
|
|
12
|
+
from .lib._tiff import DATATYPE2FMT
|
|
13
13
|
from .jp2k import Jp2k
|
|
14
14
|
from glymur.core import RESTRICTED_ICC_PROFILE
|
|
15
15
|
|
|
@@ -276,11 +276,7 @@ class _2JP2Converter(object):
|
|
|
276
276
|
|
|
277
277
|
b.seek(tag_offset)
|
|
278
278
|
|
|
279
|
-
|
|
280
|
-
dtype = tags[tag]["dtype"]
|
|
281
|
-
except IndexError:
|
|
282
|
-
breakpoint()
|
|
283
|
-
pass
|
|
279
|
+
dtype = tags[tag]["dtype"]
|
|
284
280
|
|
|
285
281
|
nvalues = tags[tag]["nvalues"]
|
|
286
282
|
payload = tags[tag]["payload"]
|
glymur/jp2box.py
CHANGED
glymur/jp2k.py
CHANGED
|
@@ -526,10 +526,10 @@ class Jp2k(Jp2kr):
|
|
|
526
526
|
This method can only be used to create JPEG 2000 images that can fit
|
|
527
527
|
in memory.
|
|
528
528
|
"""
|
|
529
|
-
if version.openjpeg_version < "2.
|
|
529
|
+
if version.openjpeg_version < "2.4.0":
|
|
530
530
|
msg = (
|
|
531
|
-
"
|
|
532
|
-
"
|
|
531
|
+
"The minimum supported version of OpenJPEG is 2.4.0. "
|
|
532
|
+
f"Your version is {version.openjpeg_version}."
|
|
533
533
|
)
|
|
534
534
|
raise RuntimeError(msg)
|
|
535
535
|
|
|
@@ -741,6 +741,7 @@ class Jp2k(Jp2kr):
|
|
|
741
741
|
|
|
742
742
|
Examples
|
|
743
743
|
--------
|
|
744
|
+
# noqa : W291
|
|
744
745
|
>>> import io, shutil, lxml.etree as ET
|
|
745
746
|
>>> _ = shutil.copyfile(glymur.data.nemo(), 'new-nemo.jp2')
|
|
746
747
|
>>> j = glymur.Jp2k('new-nemo.jp2')
|
|
@@ -1463,10 +1464,10 @@ class _TileWriter(object):
|
|
|
1463
1464
|
"""Write image data to a JP2/JPX/J2k file. Intended usage of the
|
|
1464
1465
|
various parameters follows that of OpenJPEG's opj_compress utility.
|
|
1465
1466
|
"""
|
|
1466
|
-
if version.openjpeg_version < "2.
|
|
1467
|
+
if version.openjpeg_version < "2.4.0":
|
|
1467
1468
|
msg = (
|
|
1468
|
-
"
|
|
1469
|
-
"
|
|
1469
|
+
"The minimum supported version of OpenJPEG is 2.4.0. "
|
|
1470
|
+
f"Your version is {version.openjpeg_version}."
|
|
1470
1471
|
)
|
|
1471
1472
|
raise RuntimeError(msg)
|
|
1472
1473
|
|
glymur/jp2kr.py
CHANGED
|
@@ -12,7 +12,6 @@ from __future__ import annotations
|
|
|
12
12
|
from contextlib import ExitStack
|
|
13
13
|
import ctypes
|
|
14
14
|
import pathlib
|
|
15
|
-
import re
|
|
16
15
|
import struct
|
|
17
16
|
import sys
|
|
18
17
|
import warnings
|
|
@@ -396,7 +395,6 @@ class Jp2kr(Jp2kBox):
|
|
|
396
395
|
"""
|
|
397
396
|
.. deprecated:: 0.15.0
|
|
398
397
|
"""
|
|
399
|
-
breakpoint()
|
|
400
398
|
msg = "Deprecated, do not use."
|
|
401
399
|
warnings.warn(msg, DeprecationWarning)
|
|
402
400
|
self._parse(force=force)
|
|
@@ -694,11 +692,10 @@ class Jp2kr(Jp2kBox):
|
|
|
694
692
|
RuntimeError
|
|
695
693
|
If the image has differing subsample factors.
|
|
696
694
|
"""
|
|
697
|
-
if
|
|
695
|
+
if version.openjpeg_version < '2.4.0':
|
|
698
696
|
msg = (
|
|
699
|
-
|
|
700
|
-
f"
|
|
701
|
-
f"Your version is {version.openjpeg_version}"
|
|
697
|
+
"The minimum supported version of OpenJPEG is 2.4.0. "
|
|
698
|
+
f"Your version is {version.openjpeg_version}."
|
|
702
699
|
)
|
|
703
700
|
raise RuntimeError(msg)
|
|
704
701
|
|
|
@@ -878,11 +875,10 @@ class Jp2kr(Jp2kBox):
|
|
|
878
875
|
>>> jp = glymur.Jp2k(jfile)
|
|
879
876
|
>>> components_lst = jp.read_bands(rlevel=1)
|
|
880
877
|
"""
|
|
881
|
-
if version.openjpeg_version < "2.
|
|
878
|
+
if version.openjpeg_version < "2.4.0":
|
|
882
879
|
msg = (
|
|
883
|
-
|
|
884
|
-
f"
|
|
885
|
-
f"{version.openjpeg_version}."
|
|
880
|
+
"The minimum supported version of OpenJPEG is 2.4.0. "
|
|
881
|
+
f"Your version is {version.openjpeg_version}."
|
|
886
882
|
)
|
|
887
883
|
raise RuntimeError(msg)
|
|
888
884
|
|
glymur/options.py
CHANGED
|
@@ -71,11 +71,10 @@ def set_option(key, value):
|
|
|
71
71
|
raise KeyError(f"{key} not valid.")
|
|
72
72
|
|
|
73
73
|
if key == "lib.num_threads":
|
|
74
|
-
if version.openjpeg_version < "2.
|
|
74
|
+
if version.openjpeg_version < "2.4.0":
|
|
75
75
|
msg = (
|
|
76
|
-
|
|
77
|
-
f"
|
|
78
|
-
f"{version.openjpeg_version}."
|
|
76
|
+
"The minimum supported version of OpenJPEG is 2.4.0. "
|
|
77
|
+
f"Your version is {version.openjpeg_version}."
|
|
79
78
|
)
|
|
80
79
|
raise RuntimeError(msg)
|
|
81
80
|
if not opj2.has_thread_support():
|
glymur/version.py
CHANGED
|
@@ -16,11 +16,11 @@ import numpy as np
|
|
|
16
16
|
|
|
17
17
|
# Local imports ...
|
|
18
18
|
from .lib import openjp2 as opj2
|
|
19
|
-
from .lib import tiff
|
|
19
|
+
from .lib import _tiff as tiff
|
|
20
20
|
|
|
21
21
|
# Do not change the format of this next line! Doing so risks breaking
|
|
22
22
|
# setup.py
|
|
23
|
-
version = "0.14.
|
|
23
|
+
version = "0.14.5"
|
|
24
24
|
|
|
25
25
|
version_tuple = parse(version).release
|
|
26
26
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: Glymur
|
|
3
|
-
Version: 0.14.
|
|
3
|
+
Version: 0.14.5
|
|
4
4
|
Summary: Read and write JPEG 2000 files
|
|
5
5
|
Author-email: John Evans <jevans667cc@proton.me>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -12,6 +12,7 @@ Classifier: Programming Language :: Python
|
|
|
12
12
|
Classifier: Programming Language :: Python :: 3.11
|
|
13
13
|
Classifier: Programming Language :: Python :: 3.12
|
|
14
14
|
Classifier: Programming Language :: Python :: 3.13
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
15
16
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
16
17
|
Classifier: Intended Audience :: Science/Research
|
|
17
18
|
Classifier: Operating System :: OS Independent
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
glymur/__init__.py,sha256=8kFoLkxAFhVEsgR0WCEaF0iXE5GZSp47nPlheGMpP-c,625
|
|
2
|
-
glymur/_core_converter.py,sha256=
|
|
2
|
+
glymur/_core_converter.py,sha256=clwEsIHKA4AFprf6pyT0j2Nt4nczKTr4mv8W1_ngidU,12941
|
|
3
3
|
glymur/_iccprofile.py,sha256=v0nOhJuZsKViBUYCf8TWVJvs1k0vC9PGYdbkEIfGuI4,4156
|
|
4
4
|
glymur/codestream.py,sha256=JQUVS8nENdf-rgMDuGwsrg0UakhN_kIShfZEzIV7IT4,62695
|
|
5
5
|
glymur/command_line.py,sha256=3Wngx3wfAvP2PEf4-XRbmm43Bz8zywIL3Gd-6k-wMvY,11485
|
|
6
6
|
glymur/config.py,sha256=lVunNA-A475BX27L_qmrec_lm1InzHuL4_jkG8v_1FA,4140
|
|
7
7
|
glymur/core.py,sha256=O07TfaRW2YmurkFMiurl0DkDSGB0slDAAzP83K1HPFA,3613
|
|
8
|
-
glymur/jp2box.py,sha256=
|
|
9
|
-
glymur/jp2k.py,sha256=
|
|
10
|
-
glymur/jp2kr.py,sha256=
|
|
8
|
+
glymur/jp2box.py,sha256=hkhs_rE0yYpgnl4cvt4KXGJzzXfJ_HLBL74TvkZpoN4,113853
|
|
9
|
+
glymur/jp2k.py,sha256=NaFzpuj4Ul4anfu4eZfjR0E1zRdG4ugeUp-nzMxHdQc,56963
|
|
10
|
+
glymur/jp2kr.py,sha256=p_O5Tc_m96476zhk9svHAJzeVBOdw0lxgxwG8aCOB4M,35386
|
|
11
11
|
glymur/jpeg.py,sha256=PSsyv4ZQTMXGQnpX9Y5-JGxHa0t6QZPZvd5BsnOhahQ,5560
|
|
12
|
-
glymur/options.py,sha256=
|
|
12
|
+
glymur/options.py,sha256=avZ2ba6yoLWZZ2J8-BI1h0k5Jy1bW0SuRq5guj3yNlo,4372
|
|
13
13
|
glymur/tiff.py,sha256=tLFBuKlMxbMPphAZ-RWLQMWC0lYzB0cJVQmBlGRYpbo,29552
|
|
14
|
-
glymur/version.py,sha256=
|
|
14
|
+
glymur/version.py,sha256=xaEYS1IGYsDWrtCer-gcp9MvZCAv5mfGU5grYGixsIA,990
|
|
15
15
|
glymur/data/__init__.py,sha256=n2KZrHV15it7Wu4YCaBLXui1ZleQ30dnZ92dyP6q05k,955
|
|
16
16
|
glymur/data/goodstuff.j2k,sha256=xKQG68KMu33gYjRUDTQvam1Cue2tdio85rNp5J-rYZE,115220
|
|
17
17
|
glymur/data/heliov.jpx,sha256=KXnYdBZgl25jcGLu-m-QfhuP9pqUXV0Hp9HHEdJqr34,1399071
|
|
@@ -20,9 +20,9 @@ glymur/lib/__init__.py,sha256=JnM9oPfcZhBDLKo7_yLS-lIRQ1wXb1N9hKKQ-G7vYVk,127
|
|
|
20
20
|
glymur/lib/_tiff.py,sha256=t8XfgwX2jX0qSU8RuTkNvWLe2390Bp7TiVlr8K2Ku68,51828
|
|
21
21
|
glymur/lib/openjp2.py,sha256=0UWPp2mto8G43yRUhGfpcS1RV6l3ac1YQrlVyBhxvjs,44064
|
|
22
22
|
glymur/lib/tiff.py,sha256=H9hgYh-gBx8LFec4LYReQOpscY51hpK6TIU27-zY8gg,260
|
|
23
|
-
glymur-0.14.
|
|
24
|
-
glymur-0.14.
|
|
25
|
-
glymur-0.14.
|
|
26
|
-
glymur-0.14.
|
|
27
|
-
glymur-0.14.
|
|
28
|
-
glymur-0.14.
|
|
23
|
+
glymur-0.14.5.dist-info/licenses/LICENSE.txt,sha256=G9pvBgkJdPTtZqQmoRyIgAydtic1ZwWtOWBea9VMW7I,1077
|
|
24
|
+
glymur-0.14.5.dist-info/METADATA,sha256=NjbtRSi_NjWaLzfE5r-wN65A-LAYpHa9FVW_XAXUNaY,1325
|
|
25
|
+
glymur-0.14.5.dist-info/WHEEL,sha256=qELbo2s1Yzl39ZmrAibXA2jjPLUYfnVhUNTlyF1rq0Y,92
|
|
26
|
+
glymur-0.14.5.dist-info/entry_points.txt,sha256=v_9O2V_6M5ir6_nYmtkpgY9QvN1H-CMVg6tKqcUN4v0,133
|
|
27
|
+
glymur-0.14.5.dist-info/top_level.txt,sha256=D0SvtBUoPxOs40OTRW3l-kjGFHM6VrXS8yZPK5Fx2wY,7
|
|
28
|
+
glymur-0.14.5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|