[Git][debian-gis-team/glymur][upstream] New upstream version 0.11.6
Antonio Valentino (@antonio.valentino)
gitlab at salsa.debian.org
Sat Sep 17 16:41:30 BST 2022
Antonio Valentino pushed to branch upstream at Debian GIS Project / glymur
Commits:
8fd3e889 by Antonio Valentino at 2022-09-17T11:06:43+00:00
New upstream version 0.11.6
- - - - -
7 changed files:
- CHANGES.txt
- docs/source/conf.py
- docs/source/whatsnew/0.11.rst
- glymur/jp2k.py
- glymur/version.py
- setup.cfg
- tests/test_jp2k.py
Changes:
=====================================
CHANGES.txt
=====================================
@@ -1,4 +1,8 @@
-September 07, 2022 - v0.11.5
+September 12, 2022 - v0.11.5
+ Fix reads where COD segment not at index[2]
+ This fix not included in 0.11.5
+
+September 7, 2022 - v0.11.5
Fix reads where COD segment not at index[2]
August 18, 2022 - v0.11.4
=====================================
docs/source/conf.py
=====================================
@@ -78,7 +78,7 @@ copyright = '2013-2022, John Evans'
# The short X.Y version.
version = '0.11'
# The full version, including alpha/beta/rc tags.
-release = '0.11.5'
+release = '0.11.6'
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
=====================================
docs/source/whatsnew/0.11.rst
=====================================
@@ -2,10 +2,16 @@
Changes in glymur 0.11
######################
+*****************
+Changes in 0.11.6
+*****************
+ * Fix reads where COD segment not at index[2].
+ * This fix not included in 0.11.5.
+
*****************
Changes in 0.11.5
*****************
- * Fix reads where COD segment not at index[2]
+ * Fix reads where COD segment not at index[2].
*****************
Changes in 0.11.4
=====================================
glymur/jp2k.py
=====================================
@@ -1565,7 +1565,11 @@ class Jp2k(Jp2kBox):
# Must check the specified rlevel against the maximum.
if rlevel != 0:
# Must check the specified rlevel against the maximum.
- max_rlevel = self.codestream.segment[2].num_res
+ cod_seg = [
+ segment for segment in self.codestream.segment
+ if segment.marker_id == 'COD'
+ ][0]
+ max_rlevel = cod_seg.num_res
if rlevel == -1:
# -1 is shorthand for the largest rlevel
rlevel = max_rlevel
=====================================
glymur/version.py
=====================================
@@ -21,7 +21,7 @@ from .lib import tiff
# Do not change the format of this next line! Doing so risks breaking
# setup.py
-version = "0.11.5"
+version = "0.11.6"
version_tuple = parse(version).release
=====================================
setup.cfg
=====================================
@@ -1,6 +1,6 @@
[metadata]
name = Glymur
-version = 0.11.5
+version = 0.11.6
author = 'John Evans'
author_email = "John Evans" <john.g.evans.ne at gmail.com>
license = 'MIT'
=====================================
tests/test_jp2k.py
=====================================
@@ -79,6 +79,17 @@ class TestJp2k(fixtures.TestCommon):
j = Jp2k(path)
self.assertEqual(j.dtype, np.uint16)
+ def test_cod_segment_not_3rd(self):
+ """
+ Scenario: Normally the COD segment is the 3rd segment.
+ Here it is 4th. Read the image.
+
+ Expected response: No errors.
+ """
+ j = Jp2k(self.j2kfile)
+ j.codestream.segment.insert(2, j.codestream.segment[1])
+ j[::2, ::2]
+
def test_dtype_prec4_signd1(self):
"""
Scenario: A 4-bit signed image is read from a J2k file.
View it on GitLab: https://salsa.debian.org/debian-gis-team/glymur/-/commit/8fd3e889782e4b20e3f0e452d99828fd418aa60b
--
View it on GitLab: https://salsa.debian.org/debian-gis-team/glymur/-/commit/8fd3e889782e4b20e3f0e452d99828fd418aa60b
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-grass-devel/attachments/20220917/172dd8c1/attachment-0001.htm>
More information about the Pkg-grass-devel
mailing list