We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2db4c1e + 7d90679 commit 9b83b4aCopy full SHA for 9b83b4a
1 file changed
src/mdio/segy/_workers.py
@@ -79,7 +79,9 @@ def header_scan_worker(
79
# First we create a struct to unpack the 240-byte trace headers.
80
# The struct only knows about dimension keys, and their byte offsets.
81
# Pads the rest of the data with voids.
82
- endian = ByteOrder[segy_endian.upper()]
+ # NOTE: segyio buffer is always big endian. This is why we force it here.
83
+ # This used to be the same as `segy_endian` but we hard code it to big.
84
+ endian = ByteOrder.BIG
85
86
# Handle byte offsets
87
offsets = [0 if byte_loc is None else byte_loc - 1 for byte_loc in byte_locs]
0 commit comments