Skip to content

GEOPY-3082: Crash converting OMF block model - #137

Merged
domfournier merged 3 commits into
developfrom
GEOPY-3082
Oct 13, 2026
Merged

domfournier merged 3 commits into
developfrom
GEOPY-3082

Conversation

@domfournier

@domfournier domfournier commented Oct 8, 2026 •

Copy link
Copy Markdown

GEOPY-3082 - Crash converting OMF block model

Copilot AI balanced review requested due to automatic review settings October 8, 2026 15:56
@github-actions github-actions Bot changed the title GEOPY-3082 GEOPY-3082: Crash converting OMF block model Oct 8, 2026
@codecov

codecov Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.80%. Comparing base (9a32013) to head (aa98809).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop     #137   +/-   ##
========================================
  Coverage    92.79%   92.80%           
========================================
  Files           27       27           
  Lines         1526     1528    +2     
========================================
+ Hits          1416     1418    +2     
  Misses         110      110           
Files with missing lines Coverage Δ
omf/fileio/geoh5.py 92.00% <100.00%> (+0.01%) ⬆️
omf/fileio/utils.py 100.00% <ø> (ø)
tests/conftest.py 100.00% <100.00%> (ø)
tests/convert_volume_test.py 100.00% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

Mapped no-data indices are corrupted, and array comparison failures are silently suppressed.

1 open finding
What changed in this PR

Addresses the OMF block-model conversion crash by adapting the geoh5 integration to updated dependency APIs.

Changes:

  • Updates geoh5py imports and geometry-origin handling.
  • Adjusts conversion fixtures and comparison behaviour.
  • Refreshes locked dependencies.
File Description
tests/​convert_volume_test.py Updates mapped indices and origin assertions.
tests/​conftest.py Expands the point fixture to 5,000 values.
poetry.lock Updates geoh5py and other dependencies.
omf/​fileio/​utils.py Adds exception handling around array comparisons.
omf/​fileio/​geoh5.py Adapts imports and origin access to updated APIs.

🧠 Review effort: Balanced


Give feedback about Copilot approvals in this survey to enter a drawing for a $150 gift card.

Comment thread omf/fileio/utils.py Outdated
Comment thread omf/fileio/utils.py Outdated
Removed try-except block around assert_allclose for array comparison.

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@domfournier
domfournier merged commit 5f4dadd into develop Oct 13, 2026
23 checks passed
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.

4 participants