Glymur 0.14.2__py3-none-any.whl → 0.14.4__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 +1 -1
- glymur/jp2box.py +1 -1
- glymur/jp2k.py +6 -6
- glymur/jp2kr.py +6 -9
- glymur/options.py +3 -4
- glymur/version.py +2 -2
- {glymur-0.14.2.dist-info → glymur-0.14.4.dist-info}/METADATA +2 -1
- {glymur-0.14.2.dist-info → glymur-0.14.4.dist-info}/RECORD +12 -12
- {glymur-0.14.2.dist-info → glymur-0.14.4.dist-info}/WHEEL +0 -0
- {glymur-0.14.2.dist-info → glymur-0.14.4.dist-info}/entry_points.txt +0 -0
- {glymur-0.14.2.dist-info → glymur-0.14.4.dist-info}/licenses/LICENSE.txt +0 -0
- {glymur-0.14.2.dist-info → glymur-0.14.4.dist-info}/top_level.txt +0 -0
glymur/_core_converter.py
CHANGED
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
|
|
|
@@ -1463,10 +1463,10 @@ class _TileWriter(object):
|
|
|
1463
1463
|
"""Write image data to a JP2/JPX/J2k file. Intended usage of the
|
|
1464
1464
|
various parameters follows that of OpenJPEG's opj_compress utility.
|
|
1465
1465
|
"""
|
|
1466
|
-
if version.openjpeg_version < "2.
|
|
1466
|
+
if version.openjpeg_version < "2.4.0":
|
|
1467
1467
|
msg = (
|
|
1468
|
-
"
|
|
1469
|
-
"
|
|
1468
|
+
"The minimum supported version of OpenJPEG is 2.4.0. "
|
|
1469
|
+
f"Your version is {version.openjpeg_version}."
|
|
1470
1470
|
)
|
|
1471
1471
|
raise RuntimeError(msg)
|
|
1472
1472
|
|
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
|
|
@@ -694,11 +693,10 @@ class Jp2kr(Jp2kBox):
|
|
|
694
693
|
RuntimeError
|
|
695
694
|
If the image has differing subsample factors.
|
|
696
695
|
"""
|
|
697
|
-
if
|
|
696
|
+
if version.openjpeg_version < '2.4.0':
|
|
698
697
|
msg = (
|
|
699
|
-
|
|
700
|
-
f"
|
|
701
|
-
f"Your version is {version.openjpeg_version}"
|
|
698
|
+
"The minimum supported version of OpenJPEG is 2.4.0. "
|
|
699
|
+
f"Your version is {version.openjpeg_version}."
|
|
702
700
|
)
|
|
703
701
|
raise RuntimeError(msg)
|
|
704
702
|
|
|
@@ -878,11 +876,10 @@ class Jp2kr(Jp2kBox):
|
|
|
878
876
|
>>> jp = glymur.Jp2k(jfile)
|
|
879
877
|
>>> components_lst = jp.read_bands(rlevel=1)
|
|
880
878
|
"""
|
|
881
|
-
if version.openjpeg_version < "2.
|
|
879
|
+
if version.openjpeg_version < "2.4.0":
|
|
882
880
|
msg = (
|
|
883
|
-
|
|
884
|
-
f"
|
|
885
|
-
f"{version.openjpeg_version}."
|
|
881
|
+
"The minimum supported version of OpenJPEG is 2.4.0. "
|
|
882
|
+
f"Your version is {version.openjpeg_version}."
|
|
886
883
|
)
|
|
887
884
|
raise RuntimeError(msg)
|
|
888
885
|
|
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.4"
|
|
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.4
|
|
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=qdJpzJpItFdOxeMq8q-pz29I917qCJ4NhBk1zlUjxL8,13043
|
|
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=5NoDkXo2JYET-7TQcU8YveI4f10RvZunnWZZaHUK5fw,56941
|
|
10
|
+
glymur/jp2kr.py,sha256=kR9SQjGQ4Ml40UP3oSjhVCK7hI1pDC8_TKwmMEzdeU0,35407
|
|
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=Y6RbjleIxC7hPvA1UPLiHD1xkpot8ZKboSif1fAeG0Y,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.4.dist-info/licenses/LICENSE.txt,sha256=G9pvBgkJdPTtZqQmoRyIgAydtic1ZwWtOWBea9VMW7I,1077
|
|
24
|
+
glymur-0.14.4.dist-info/METADATA,sha256=ZB4eo9kLIQPR7T73ZR0OMN9Bwzmv8yv2c-7HIxPgh50,1325
|
|
25
|
+
glymur-0.14.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
26
|
+
glymur-0.14.4.dist-info/entry_points.txt,sha256=v_9O2V_6M5ir6_nYmtkpgY9QvN1H-CMVg6tKqcUN4v0,133
|
|
27
|
+
glymur-0.14.4.dist-info/top_level.txt,sha256=D0SvtBUoPxOs40OTRW3l-kjGFHM6VrXS8yZPK5Fx2wY,7
|
|
28
|
+
glymur-0.14.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|