From 73183fbf7a4697252c6b9664eeeba4cff4497e84 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Mon, 16 Jul 2012 16:28:43 -0400 Subject: [PATCH] Restore native byte order before running need_to_reorder_bytes. Otherwise an earier switch to a non-native byte ordering will confuse the current load. --- igor/binarywave.py | 1 + 1 file changed, 1 insertion(+) diff --git a/igor/binarywave.py b/igor/binarywave.py index 3429ad1..ae60f14 100644 --- a/igor/binarywave.py +++ b/igor/binarywave.py @@ -476,6 +476,7 @@ def loadibw(filename, strict=True): else: f = open(filename, 'rb') try: + BinHeaderCommon.set_byte_order('=') b = buffer(f.read(BinHeaderCommon.size)) version = BinHeaderCommon.unpack_dict_from(b)['version'] needToReorderBytes = need_to_reorder_bytes(version) -- 2.26.2