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

Refactor SEG-Y standard registration and retrieval and make it more strict #81

Merged
merged 2 commits into from
Apr 8, 2024

Conversation

tasansal
Copy link
Contributor

@tasansal tasansal commented Apr 8, 2024

The SEG-Y standard registration method and retrieval method have been renamed for clarity. Now, they are called register_segy_standard and get_segy_standard. Also, the SegyStandard property for SegyDescriptor and all its references is updated which can be None. This change helps with custom schemas and makes the numbering more strict.

We only allow {0.0, 1.0, 2.0, 2.1, None} as values now.

…trict.

The SEG-Y standard registration method and retrieval method have been renamed for clarity. Now, they are called "register_segy_standard" and "get_segy_standard" respectively. Also, the 'SegyStandard' property for 'SegyDescriptor' and all its references is updated which can be None. This change makes the codebase more consistent and the behavior more predictable when working with SEG-Y standard objects.
@tasansal tasansal added the enhancement New feature or request label Apr 8, 2024
@tasansal tasansal self-assigned this Apr 8, 2024
The 'segy_revision' method in SegyFactory and 'segy_standard' in SegyInfo schema now allow None type. The conditional expression to handle non-zero SEG-Y revision in SegyFactory has also been adjusted accordingly. This refactoring acknowledges potential cases where SEG-Y standard value might not be defined.
Copy link

codecov bot commented Apr 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.15%. Comparing base (ed9c2c6) to head (86500e2).

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #81      +/-   ##
==========================================
- Coverage   94.18%   94.15%   -0.03%     
==========================================
  Files          38       38              
  Lines        1582     1574       -8     
  Branches      193      193              
==========================================
- Hits         1490     1482       -8     
  Misses         70       70              
  Partials       22       22              

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

@tasansal tasansal merged commit edc43dc into main Apr 8, 2024
32 checks passed
@tasansal tasansal deleted the refactor-standards branch April 8, 2024 15:19
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