From: W. Trevor King Date: Mon, 16 Jul 2012 20:28:43 +0000 (-0400) Subject: Restore native byte order before running need_to_reorder_bytes. X-Git-Tag: v0.2~46 X-Git-Url: http://git.tremily.us/?p=igor.git;a=commitdiff_plain;h=73183fbf7a4697252c6b9664eeeba4cff4497e84 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. --- 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)