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 CHANGED
@@ -9,7 +9,7 @@ from uuid import UUID
9
9
 
10
10
  # local imports
11
11
  from . import jp2box
12
- from .lib.tiff import DATATYPE2FMT
12
+ from .lib._tiff import DATATYPE2FMT
13
13
  from .jp2k import Jp2k
14
14
  from glymur.core import RESTRICTED_ICC_PROFILE
15
15
 
glymur/jp2box.py CHANGED
@@ -51,7 +51,7 @@ from .core import (
51
51
  ANY_ICC_PROFILE,
52
52
  VENDOR_COLOR_METHOD,
53
53
  )
54
- from .lib.tiff import tiff_header, BadTiffTagDatatype
54
+ from .lib._tiff import tiff_header, BadTiffTagDatatype
55
55
  from . import get_option
56
56
  from ._iccprofile import _ICCProfile
57
57
 
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.3.0":
529
+ if version.openjpeg_version < "2.4.0":
530
530
  msg = (
531
- "You must have at least version 2.3.0 of OpenJPEG in order to "
532
- "write images."
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.3.0":
1466
+ if version.openjpeg_version < "2.4.0":
1467
1467
  msg = (
1468
- "You must have at least version 2.3.0 of OpenJPEG "
1469
- "in order to write images."
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 re.match("0|1|2.[012]", version.openjpeg_version):
696
+ if version.openjpeg_version < '2.4.0':
698
697
  msg = (
699
- f"You must have a version of OpenJPEG at least as high as "
700
- f"2.3.0 before you can read JPEG2000 images with glymur. "
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.3.0":
879
+ if version.openjpeg_version < "2.4.0":
882
880
  msg = (
883
- f"You must have at least version 2.3.0 of OpenJPEG installed "
884
- f"before using this method. Your version of OpenJPEG is "
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.2.0":
74
+ if version.openjpeg_version < "2.4.0":
75
75
  msg = (
76
- f"Thread support is not available on versions of OpenJPEG "
77
- f"prior to 2.2.0. Your version is "
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.2"
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.2
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=tOCxgbZReS47vyCNrfFYaEM9hM9U6ei-PvQdwFXY5mk,13042
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=9tBCbLqqwO-CP587a_dAW88W3MJLJMz-cAyQ_LSUO6A,113852
9
- glymur/jp2k.py,sha256=gcYXL9kO2HQP4BGU2yUWb1f5oyIL0oQ4k0Cf8wb_B7Y,56895
10
- glymur/jp2kr.py,sha256=6Taw9EkohB5DibsNTMf5IJXDuFH6CU4ZuIfLKxKDDOY,35577
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=TZApl6r_qCERHSIcTdM0iGvYuQLrZMbOtyFJB7XkvK0,4413
12
+ glymur/options.py,sha256=avZ2ba6yoLWZZ2J8-BI1h0k5Jy1bW0SuRq5guj3yNlo,4372
13
13
  glymur/tiff.py,sha256=tLFBuKlMxbMPphAZ-RWLQMWC0lYzB0cJVQmBlGRYpbo,29552
14
- glymur/version.py,sha256=ZBW7UJ51M0JenE0HMhstb04Yfmvs-L_Y8JoiUB5pgXE,981
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.2.dist-info/licenses/LICENSE.txt,sha256=G9pvBgkJdPTtZqQmoRyIgAydtic1ZwWtOWBea9VMW7I,1077
24
- glymur-0.14.2.dist-info/METADATA,sha256=shnQVp0ugOqRoBuuo-H1YKATQg1y39YVZ6M32JXlGa0,1274
25
- glymur-0.14.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
26
- glymur-0.14.2.dist-info/entry_points.txt,sha256=v_9O2V_6M5ir6_nYmtkpgY9QvN1H-CMVg6tKqcUN4v0,133
27
- glymur-0.14.2.dist-info/top_level.txt,sha256=D0SvtBUoPxOs40OTRW3l-kjGFHM6VrXS8yZPK5Fx2wY,7
28
- glymur-0.14.2.dist-info/RECORD,,
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,,