[Git][debian-gis-team/glymur][master] 4 commits: New upstream version 0.11.6

Antonio Valentino (@antonio.valentino) gitlab at salsa.debian.org
Sat Sep 17 16:41:20 BST 2022



Antonio Valentino pushed to branch master at Debian GIS Project / glymur


Commits:
8fd3e889 by Antonio Valentino at 2022-09-17T11:06:43+00:00
New upstream version 0.11.6
- - - - -
d3466e3e by Antonio Valentino at 2022-09-17T11:06:45+00:00
Update upstream source from tag 'upstream/0.11.6'

Update to upstream version '0.11.6'
with Debian dir 801f54a27a9ab72ad9f906f44ac074a5e1e0b544
- - - - -
96334160 by Antonio Valentino at 2022-09-17T11:07:54+00:00
New usptream release

- - - - -
46b835fd by Antonio Valentino at 2022-09-17T11:11:48+00:00
Set distribution to unstable

- - - - -


8 changed files:

- CHANGES.txt
- debian/changelog
- 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


=====================================
debian/changelog
=====================================
@@ -1,3 +1,9 @@
+glymur (0.11.6-1) unstable; urgency=medium
+
+  * New upstream release.
+
+ -- Antonio Valentino <antonio.valentino at tiscali.it>  Sat, 17 Sep 2022 11:11:25 +0000
+
 glymur (0.11.5-1) unstable; urgency=medium
 
   * New upstream release.


=====================================
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/-/compare/b7957d9c1cd3e301d0c2dfe1f27df1c863b3876c...46b835fd1621e4fc7d72ba8daf327f4a0ebda026

-- 
View it on GitLab: https://salsa.debian.org/debian-gis-team/glymur/-/compare/b7957d9c1cd3e301d0c2dfe1f27df1c863b3876c...46b835fd1621e4fc7d72ba8daf327f4a0ebda026
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/781397ef/attachment-0001.htm>


More information about the Pkg-grass-devel mailing list