Skip to content

Commit

Permalink
Merge branch 'main' into docs/fix_furo_bug
Browse files Browse the repository at this point in the history
  • Loading branch information
tasansal authored Sep 13, 2023
2 parents beb0316 + 9b83b4a commit 362c30d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ tqdm = "^4.66.1"
segyio = "^1.9.3"
numba = ">=0.57.1,<1.0.0"
psutil = "^5.9.5"
fsspec = "~2023.6.0"

# Extras
distributed = {version = ">=2023.8.0", optional = true}
Expand Down
4 changes: 3 additions & 1 deletion src/mdio/segy/_workers.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@ def header_scan_worker(
# First we create a struct to unpack the 240-byte trace headers.
# The struct only knows about dimension keys, and their byte offsets.
# Pads the rest of the data with voids.
endian = ByteOrder[segy_endian.upper()]
# NOTE: segyio buffer is always big endian. This is why we force it here.
# This used to be the same as `segy_endian` but we hard code it to big.
endian = ByteOrder.BIG

# Handle byte offsets
offsets = [0 if byte_loc is None else byte_loc - 1 for byte_loc in byte_locs]
Expand Down

0 comments on commit 362c30d

Please sign in to comment.