Skip to content

feat(segy): add update_segy_file_headers - #863

Merged
BrianMichell merged 3 commits into
TGSAI:mainfrom
BrianMichell:feat/update-segy-file-headers
Sep 16, 2026
Merged

BrianMichell merged 3 commits into
TGSAI:mainfrom
BrianMichell:feat/update-segy-file-headers

Conversation

@BrianMichell

Copy link
Copy Markdown
Collaborator

Ingest may skip text/binary file headers. Export needs them. Write attrs only so traces stay untouched. Also provide a helper function/example for how to update the text header and binary header in place.

BrianMichell and others added 2 commits August 13, 2026 20:01
Ingest may skip text/binary file headers. Export needs them.
Write attrs only so traces stay untouched.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@codecov

codecov Bot commented Aug 13, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 93.84058% with 17 lines in your changes missing coverage. Please review.
✅ Project coverage is 93.12%. Comparing base (c3ba558) to head (fabb57d).
⚠️ Report is 255 commits behind head on main.

Files with missing lines Patch % Lines
src/mdio/segy/headers.py 88.88% 10 Missing and 7 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #863      +/-   ##
==========================================
+ Coverage   85.30%   93.12%   +7.81%     
==========================================
  Files          46      150     +104     
  Lines        2219     8702    +6483     
  Branches      306      497     +191     
==========================================
+ Hits         1893     8104    +6211     
- Misses        281      518     +237     
- Partials       45       80      +35     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Default header generation used hardcoded 4000/1500 values, silently
writing wrong trace geometry into stores that lack a binary header.
Derive sample_interval and samples_per_trace from the fastest
dimension, and raise when spacing is absent, zero, or fractional.

Co-authored-by: Cursor <cursoragent@cursor.com>
@BrianMichell BrianMichell added the enhancement New feature or request label Sep 16, 2026
@BrianMichell
BrianMichell merged commit 5658fb0 into TGSAI:main Sep 16, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant