From 4ce3560c610020f1fa628655d2812b68431c963a Mon Sep 17 00:00:00 2001 From: Piero Toffanin Date: Sun, 3 Jun 2018 21:15:27 -0400 Subject: [PATCH] Proper endianess format --- scripts/odm_georeferencing.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/odm_georeferencing.py b/scripts/odm_georeferencing.py index 42f8b0a4..054ba278 100644 --- a/scripts/odm_georeferencing.py +++ b/scripts/odm_georeferencing.py @@ -157,11 +157,12 @@ class ODMGeoreferencingCell(ecto.Cell): if line.startswith("end_header"): break + fmt = '{}dddBBB'.format(endianess) while True: chunk = f.read(27) # 3 doubles, 3 uints if len(chunk) < 27: break - tokens = struct.unpack('