Skip to content

Commit

Permalink
WIP: Upgrade libE57Format to v 3.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
dancergraham committed Feb 6, 2024
1 parent 407b6dd commit c7711d4
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 19 deletions.
2 changes: 1 addition & 1 deletion src/pye57/e57.py
Expand Up @@ -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))
Expand Down
17 changes: 0 additions & 17 deletions tests/test_main.py
Expand Up @@ -6,7 +6,6 @@

import pye57
from pye57 import libe57
from pye57.utils import get_fields

try:
from exceptions import WindowsError
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit c7711d4

Please sign in to comment.