Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update logic for finding first non-zero sample index in SEG-Y data #247

Merged
merged 1 commit into from
Jul 24, 2023

Conversation

tasansal
Copy link
Collaborator

The previous np.sum() based method to get non-zero indexes in multidimensional SEG-Y data was replaced with the np.where() method. This new approach directly checks where in the data non-zero elements exist, which provides a more accurate result, especially in cases of complex top mute. The sum was underflowing to zero in some cases where the values were too small.

The previous method using sum() to get non-zero indexes in multidimensional segy data was replaced with the np.where() method. This new approach directly checks where in the data non-zero elements exist, which provides a more accurate result especially in cases of complex top mute.
@tasansal tasansal added the bug Something isn't working label Jul 24, 2023
@tasansal tasansal self-assigned this Jul 24, 2023
@codecov-commenter
Copy link

Codecov Report

Merging #247 (9c7c767) into main (5216791) will decrease coverage by 0.05%.
The diff coverage is 0.00%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

@@            Coverage Diff             @@
##             main     #247      +/-   ##
==========================================
- Coverage   84.27%   84.23%   -0.05%     
==========================================
  Files          46       46              
  Lines        2016     2017       +1     
  Branches      325      325              
==========================================
  Hits         1699     1699              
- Misses        281      282       +1     
  Partials       36       36              
Impacted Files Coverage Δ
src/mdio/segy/_workers.py 17.72% <0.00%> (-0.23%) ⬇️

@tasansal tasansal merged commit 187ca3f into main Jul 24, 2023
20 checks passed
@tasansal tasansal deleted the fix/nonzero_calculation branch July 24, 2023 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants