Skip to content

Skip RFT approximation for points outside the grid - #14277

Merged
HakonSohoel merged 1 commit into
equinor:mainfrom
HakonSohoel:fix-error-when-point_to_approximate-is-outside-the-grid
Sep 3, 2026
Merged

Skip RFT approximation for points outside the grid#14277
HakonSohoel merged 1 commit into
equinor:mainfrom
HakonSohoel:fix-error-when-point_to_approximate-is-outside-the-grid

Conversation

@HakonSohoel

@HakonSohoel HakonSohoel commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Observations whose location falls outside the grid have well_connection_cell and well_connection_cell_center None. Attempting to calculate an approximated response for a point with coordinates None would raise a TypeError. Since responses and observations are matched on well_connection_cell, an approximated response would not be matched to any observation. Approximation is therefore skipped for such points.

Issue
Resolves #14267

  • PR title captures the intent of the changes, and is fitting for release notes.
  • Added appropriate release note label
  • Commit history is consistent and clean, in line with the contribution guidelines.
  • Make sure unit tests pass locally after every commit (git rebase -i main --exec 'just rapid-tests')

When applicable

  • When screenshots are changed: Review screenshot-PR in ert-testdata,
    merge screenshot-PR in ert-testdata before merging this PR.
  • When there are user facing changes: Updated documentation
  • New behavior or changes to existing untested code: Ensured that unit tests are added (See Ground Rules).
  • Large PR: Prepare changes in small commits for more convenient review
  • Bug fix: Add regression test for the bug
  • Bug fix: Add backport label to latest release (format: 'backport release-branch-name')

@HakonSohoel HakonSohoel added release-notes:bug-fix Automatically categorise as bug fix in release notes backport version-25.0 labels Aug 25, 2026
@codspeed-hq

codspeed-hq Bot commented Aug 25, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 36 untouched benchmarks


Comparing HakonSohoel:fix-error-when-point_to_approximate-is-outside-the-grid (6c6533f) with main (36be1f6)

Open in CodSpeed

@HakonSohoel
HakonSohoel enabled auto-merge (squash) August 25, 2026 11:39
Comment thread tests/ert/unit_tests/config/test_rft_config.py Outdated
Observations whose location falls outside the grid have
well_connection_cell and well_connection_cell_center None. Attempting to
calculate an approximated response for a point with coordinates None
would raise a TypeError. Since responses and observations are matched on
well_connection_cell, an approximated response would not be matched to
any observation. Approximation is therefore skipped for such points.
@HakonSohoel
HakonSohoel force-pushed the fix-error-when-point_to_approximate-is-outside-the-grid branch from cdbec29 to 6c6533f Compare September 3, 2026 07:34
@HakonSohoel
HakonSohoel requested a review from achaikou September 3, 2026 07:41
@codecov-commenter

codecov-commenter commented Sep 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.76%. Comparing base (4e36dd4) to head (6c6533f).
⚠️ Report is 8 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #14277   +/-   ##
=======================================
  Coverage   91.75%   91.76%           
=======================================
  Files         485      485           
  Lines       34708    34701    -7     
=======================================
- Hits        31848    31843    -5     
+ Misses       2860     2858    -2     
Flag Coverage Δ
cli-tests 35.62% <0.00%> (-0.09%) ⬇️
fuzz 43.85% <0.00%> (-0.04%) ⬇️
gui-tests 58.14% <0.00%> (-0.04%) ⬇️
performance-and-unit-tests 81.04% <100.00%> (-0.01%) ⬇️
test 45.26% <0.00%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
src/ert/config/rft_config.py 97.86% <100.00%> (+0.36%) ⬆️

... and 11 files with indirect coverage changes

@achaikou achaikou left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nice! 🚀
And 😻 for that bug reporting :)

@HakonSohoel
HakonSohoel merged commit 03e5ba6 into equinor:main Sep 3, 2026
35 checks passed
@HakonSohoel
HakonSohoel deleted the fix-error-when-point_to_approximate-is-outside-the-grid branch September 3, 2026 08:44
@scout-team-app

scout-team-app Bot commented Sep 3, 2026

Copy link
Copy Markdown

Successfully created backport PR for version-25.0:

ajaust pushed a commit that referenced this pull request Sep 7, 2026
Observations whose location falls outside the grid have
well_connection_cell and well_connection_cell_center None. Attempting to
calculate an approximated response for a point with coordinates None
would raise a TypeError. Since responses and observations are matched on
well_connection_cell, an approximated response would not be matched to
any observation. Approximation is therefore skipped for such points.

(cherry picked from commit 03e5ba6)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport version-25.0 release-notes:bug-fix Automatically categorise as bug fix in release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error when point_to_approximate is outside the grid

3 participants