From c7711d4b6f89067ddad60ab750be7400d460d0d9 Mon Sep 17 00:00:00 2001 From: dancergraham Date: Tue, 6 Feb 2024 22:30:06 +0100 Subject: [PATCH] WIP: Upgrade libE57Format to v 3.1.1 --- libE57Format | 2 +- src/pye57/e57.py | 2 +- tests/test_main.py | 17 ----------------- 3 files changed, 2 insertions(+), 19 deletions(-) diff --git a/libE57Format b/libE57Format index f9cc0d2..1914b8e 160000 --- a/libE57Format +++ b/libE57Format @@ -1 +1 @@ -Subproject commit f9cc0d2e5f46b0f887e3628c668ae00762e9ccd6 +Subproject commit 1914b8ea972251d3bb49a33828497dde683205d9 diff --git a/src/pye57/e57.py b/src/pye57/e57.py index 67427a7..4c7205a 100644 --- a/src/pye57/e57.py +++ b/src/pye57/e57.py @@ -103,7 +103,7 @@ def write_default_header(self): self.root.set("e57LibraryVersion", libe57.StringNode(imf, libe57.E57_LIBRARY_ID)) self.root.set("coordinateMetadata", libe57.StringNode(imf, "")) creation_date_time = libe57.StructureNode(imf) - creation_date_time.set("dateTimeValue", libe57.FloatNode(imf, 10.0)) + creation_date_time.set("dateTimeValue", libe57.FloatNode(imf, 0.0)) creation_date_time.set("isAtomicClockReferenced", libe57.IntegerNode(imf, 0)) self.root.set("creationDateTime", creation_date_time) self.root.set("data3D", libe57.VectorNode(imf, True)) diff --git a/tests/test_main.py b/tests/test_main.py index 1f5a9b1..a2804a8 100644 --- a/tests/test_main.py +++ b/tests/test_main.py @@ -6,7 +6,6 @@ import pye57 from pye57 import libe57 -from pye57.utils import get_fields try: from exceptions import WindowsError @@ -62,22 +61,6 @@ def test_constants(): assert libe57.CHECKSUM_POLICY_SPARSE == 25 assert libe57.CHECKSUM_POLICY_HALF == 50 assert libe57.CHECKSUM_POLICY_ALL == 100 - assert libe57.E57_INT8_MIN == -128 - assert libe57.E57_INT8_MAX == 127 - assert libe57.E57_INT16_MIN == -32768 - assert libe57.E57_INT16_MAX == 32767 - assert libe57.E57_INT32_MIN == -2147483647 - 1 - assert libe57.E57_INT32_MAX == 2147483647 - assert libe57.E57_INT64_MIN == -9223372036854775807 - 1 - assert libe57.E57_INT64_MAX == 9223372036854775807 - assert libe57.E57_UINT8_MIN == 0 - assert libe57.E57_UINT8_MAX == 255 - assert libe57.E57_UINT16_MIN == 0 - assert libe57.E57_UINT16_MAX == 65535 - assert libe57.E57_UINT32_MIN == 0 - assert libe57.E57_UINT32_MAX == 4294967295 - assert libe57.E57_UINT64_MIN == 0 - assert libe57.E57_UINT64_MAX == 18446744073709551615 def test_open_imagefile(e57_path):