Skip to content

Commit 9059356

Browse files
committed
Add missing endianness in WK1 reader.
Everything else unpacks in little-endian, except this one call.
1 parent f75ade3 commit 9059356

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libpysal/io/iohandlers/wk1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ def _read(self):
227227

228228
if dtype in [13, 14, 16]:
229229
self.file.read(1)
230-
row, column = struct.unpack("2H", self.file.read(4))
230+
row, column = struct.unpack("<2H", self.file.read(4))
231231
format, length = "<d", 8
232232

233233
if dtype == 13:

0 commit comments

Comments
 (0)