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

ENH: add a method that creates a grid property between two input surfaces #1291

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

jcrivenaes
Copy link
Collaborator

Solves #1290 as derived task from https://github.com/equinor/fmu-orion-playground/issues/19

Contributes also to #1247

@@ -5,7 +5,7 @@ ignore_missing_imports = True
strict_equality = True
warn_redundant_casts = True
warn_unused_configs = True
warn_unused_ignores = True
warn_unused_ignores = False
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed this as it seems that mypy messages are incorrect (the # type: ignore is needed, but mypy claims it is not)

}
}
return std::make_tuple(xmid, ymid, zmid);
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As a note, manual testing indicates that this function in pybind11 is 2-3 times faster than the corresponding function using swig (which it now replaces).

@codecov-commenter
Copy link

codecov-commenter commented Jan 10, 2025

Codecov Report

Attention: Patch coverage is 76.36364% with 13 lines in your changes missing coverage. Please review.

Project coverage is 81.11%. Comparing base (0375fed) to head (6ce72b5).
Report is 61 commits behind head on main.

Files with missing lines Patch % Lines
src/xtgeo/grid3d/_grid_etc1.py 68.75% 7 Missing and 3 partials ⚠️
src/xtgeo/common/log.py 83.33% 1 Missing and 1 partial ⚠️
src/xtgeo/surface/_regsurf_utils.py 85.71% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1291      +/-   ##
==========================================
+ Coverage   80.02%   81.11%   +1.08%     
==========================================
  Files          98       94       -4     
  Lines       13680    12483    -1197     
  Branches     2203     1882     -321     
==========================================
- Hits        10948    10126     -822     
+ Misses       1999     1693     -306     
+ Partials      733      664      -69     

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

@jcrivenaes jcrivenaes requested review from mferrera and tnatt January 10, 2025 13:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants