Glymur 0.13.5__tar.gz → 0.13.6__tar.gz

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.
Files changed (54) hide show
  1. {glymur-0.13.5 → glymur-0.13.6}/CHANGES.txt +3 -0
  2. {glymur-0.13.5 → glymur-0.13.6}/Glymur.egg-info/PKG-INFO +1 -1
  3. {glymur-0.13.5 → glymur-0.13.6}/PKG-INFO +1 -1
  4. {glymur-0.13.5 → glymur-0.13.6}/glymur/tiff.py +1 -1
  5. {glymur-0.13.5 → glymur-0.13.6}/glymur/version.py +1 -1
  6. {glymur-0.13.5 → glymur-0.13.6}/setup.cfg +1 -1
  7. {glymur-0.13.5 → glymur-0.13.6}/tests/test_tiff2jp2.py +24 -0
  8. {glymur-0.13.5 → glymur-0.13.6}/Glymur.egg-info/SOURCES.txt +0 -0
  9. {glymur-0.13.5 → glymur-0.13.6}/Glymur.egg-info/dependency_links.txt +0 -0
  10. {glymur-0.13.5 → glymur-0.13.6}/Glymur.egg-info/entry_points.txt +0 -0
  11. {glymur-0.13.5 → glymur-0.13.6}/Glymur.egg-info/not-zip-safe +0 -0
  12. {glymur-0.13.5 → glymur-0.13.6}/Glymur.egg-info/requires.txt +0 -0
  13. {glymur-0.13.5 → glymur-0.13.6}/Glymur.egg-info/top_level.txt +0 -0
  14. {glymur-0.13.5 → glymur-0.13.6}/LICENSE.txt +0 -0
  15. {glymur-0.13.5 → glymur-0.13.6}/MANIFEST.in +0 -0
  16. {glymur-0.13.5 → glymur-0.13.6}/README.md +0 -0
  17. {glymur-0.13.5 → glymur-0.13.6}/glymur/__init__.py +0 -0
  18. {glymur-0.13.5 → glymur-0.13.6}/glymur/_iccprofile.py +0 -0
  19. {glymur-0.13.5 → glymur-0.13.6}/glymur/codestream.py +0 -0
  20. {glymur-0.13.5 → glymur-0.13.6}/glymur/command_line.py +0 -0
  21. {glymur-0.13.5 → glymur-0.13.6}/glymur/config.py +0 -0
  22. {glymur-0.13.5 → glymur-0.13.6}/glymur/core.py +0 -0
  23. {glymur-0.13.5 → glymur-0.13.6}/glymur/data/__init__.py +0 -0
  24. {glymur-0.13.5 → glymur-0.13.6}/glymur/data/goodstuff.j2k +0 -0
  25. {glymur-0.13.5 → glymur-0.13.6}/glymur/data/heliov.jpx +0 -0
  26. {glymur-0.13.5 → glymur-0.13.6}/glymur/data/nemo.jp2 +0 -0
  27. {glymur-0.13.5 → glymur-0.13.6}/glymur/jp2box.py +0 -0
  28. {glymur-0.13.5 → glymur-0.13.6}/glymur/jp2k.py +0 -0
  29. {glymur-0.13.5 → glymur-0.13.6}/glymur/jp2kr.py +0 -0
  30. {glymur-0.13.5 → glymur-0.13.6}/glymur/lib/__init__.py +0 -0
  31. {glymur-0.13.5 → glymur-0.13.6}/glymur/lib/openjp2.py +0 -0
  32. {glymur-0.13.5 → glymur-0.13.6}/glymur/lib/tiff.py +0 -0
  33. {glymur-0.13.5 → glymur-0.13.6}/glymur/options.py +0 -0
  34. {glymur-0.13.5 → glymur-0.13.6}/pyproject.toml +0 -0
  35. {glymur-0.13.5 → glymur-0.13.6}/tests/test_callbacks.py +0 -0
  36. {glymur-0.13.5 → glymur-0.13.6}/tests/test_cinema.py +0 -0
  37. {glymur-0.13.5 → glymur-0.13.6}/tests/test_codestream.py +0 -0
  38. {glymur-0.13.5 → glymur-0.13.6}/tests/test_colour_specification_box.py +0 -0
  39. {glymur-0.13.5 → glymur-0.13.6}/tests/test_config.py +0 -0
  40. {glymur-0.13.5 → glymur-0.13.6}/tests/test_geo.py +0 -0
  41. {glymur-0.13.5 → glymur-0.13.6}/tests/test_jp2box.py +0 -0
  42. {glymur-0.13.5 → glymur-0.13.6}/tests/test_jp2box_jpx.py +0 -0
  43. {glymur-0.13.5 → glymur-0.13.6}/tests/test_jp2box_uuid.py +0 -0
  44. {glymur-0.13.5 → glymur-0.13.6}/tests/test_jp2box_xml.py +0 -0
  45. {glymur-0.13.5 → glymur-0.13.6}/tests/test_jp2k.py +0 -0
  46. {glymur-0.13.5 → glymur-0.13.6}/tests/test_jp2k_writes.py +0 -0
  47. {glymur-0.13.5 → glymur-0.13.6}/tests/test_jp2kr.py +0 -0
  48. {glymur-0.13.5 → glymur-0.13.6}/tests/test_libtiff.py +0 -0
  49. {glymur-0.13.5 → glymur-0.13.6}/tests/test_openjp2.py +0 -0
  50. {glymur-0.13.5 → glymur-0.13.6}/tests/test_printing.py +0 -0
  51. {glymur-0.13.5 → glymur-0.13.6}/tests/test_set_decoded_components.py +0 -0
  52. {glymur-0.13.5 → glymur-0.13.6}/tests/test_slicing.py +0 -0
  53. {glymur-0.13.5 → glymur-0.13.6}/tests/test_threading.py +0 -0
  54. {glymur-0.13.5 → glymur-0.13.6}/tests/test_warnings.py +0 -0
@@ -1,3 +1,6 @@
1
+ Aug 19, 2024 - v0.13.6
2
+ Fix tiff2jp2 when tile coverage not square.
3
+
1
4
  July 26, 2024 - v0.13.5
2
5
  Add support for parsing the CAP segment.
3
6
  End official support for OpenJPEG 2.3.x.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: Glymur
3
- Version: 0.13.5
3
+ Version: 0.13.6
4
4
  Home-page: https://github.com/quintusdias/glymur
5
5
  Author: 'John Evans'
6
6
  Author-email: "John Evans" <jevans667cc@proton.me>
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: Glymur
3
- Version: 0.13.5
3
+ Version: 0.13.6
4
4
  Home-page: https://github.com/quintusdias/glymur
5
5
  Author: 'John Evans'
6
6
  Author-email: "John Evans" <jevans667cc@proton.me>
@@ -862,7 +862,7 @@ class Tiff2Jp2k(object):
862
862
  partial_jp2_tile_rows = (self.imageheight / jth) != (self.imageheight // jth) # noqa : E501
863
863
  partial_jp2_tile_cols = (self.imagewidth / jtw) != (self.imagewidth // jtw) # noqa : E501
864
864
 
865
- num_jp2k_tile_rows = int(np.ceil(self.imagewidth / jtw))
865
+ num_jp2k_tile_rows = int(np.ceil(self.imageheight / jth))
866
866
  num_jp2k_tile_cols = int(np.ceil(self.imagewidth / jtw))
867
867
 
868
868
  jp2k_tile_row = int(np.ceil(jp2k_tile_num // num_jp2k_tile_cols))
@@ -20,7 +20,7 @@ from .lib import 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.13.5"
23
+ version = "0.13.6"
24
24
 
25
25
  version_tuple = parse(version).release
26
26
 
@@ -1,6 +1,6 @@
1
1
  [metadata]
2
2
  name = Glymur
3
- version = 0.13.5
3
+ version = 0.13.6
4
4
  author = 'John Evans'
5
5
  author_email = "John Evans" <jevans667cc@proton.me>
6
6
  license = 'MIT'
@@ -43,6 +43,7 @@ class TestSuite(fixtures.TestCommon):
43
43
  cls.ycbcr_bg = root.joinpath('ycbcr_bg.tif')
44
44
  cls.ycbcr_stripped = root.joinpath('ycbcr_stripped.tif')
45
45
  cls.stripped = root.joinpath('stripped.tif')
46
+ cls.moon63 = root.joinpath('moon63.tif')
46
47
 
47
48
  test_tiff_dir = tempfile.mkdtemp()
48
49
  cls.test_tiff_path = pathlib.Path(test_tiff_dir)
@@ -1919,3 +1920,26 @@ class TestSuite(fixtures.TestCommon):
1919
1920
  expected = expected[:, :, :3]
1920
1921
 
1921
1922
  np.testing.assert_array_equal(actual, expected)
1923
+
1924
+ def test_unevenly_tiled(self):
1925
+ """
1926
+ SCENARIO: Convert monochromatic TIFF file to JP2. The TIFF is tiled
1927
+ 2x3, and the 2nd row of tiles consists of partial tiles.
1928
+
1929
+ EXPECTED RESULT: The JP2 file validates
1930
+ """
1931
+ with Tiff2Jp2k(
1932
+ self.moon63, self.temp_jp2_filename, tilesize=(32, 32)
1933
+ ) as j:
1934
+ j.run()
1935
+
1936
+ jp2 = Jp2k(self.temp_jp2_filename)
1937
+ actual = jp2[:]
1938
+ expected = skimage.io.imread(self.moon63)
1939
+ np.testing.assert_array_equal(actual, expected)
1940
+
1941
+ c = jp2.get_codestream()
1942
+ self.assertEqual(c.segment[1].xsiz, 96)
1943
+ self.assertEqual(c.segment[1].ysiz, 63)
1944
+ self.assertEqual(c.segment[1].xtsiz, 32)
1945
+ self.assertEqual(c.segment[1].ytsiz, 32)
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes