Skip to content

GEOPY-3100: Crash on active cells of DC2D inversion - #995

Merged
domfournier merged 4 commits into
developfrom
GEOPY-3100
Oct 13, 2026
Merged

domfournier merged 4 commits into
developfrom
GEOPY-3100

Conversation

@domfournier

@domfournier domfournier commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

GEOPY-3100 - Crash on active cells of DC2D inversion

Copilot AI balanced review requested due to automatic review settings October 13, 2026 13:59
@github-actions github-actions Bot changed the title GEOPY-3100 GEOPY-3100: Crash on active cells of DC2D inversion Oct 13, 2026

Copilot AI 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.

🟡 Changes recommended

Unmasked EM survey copies raise TypeError because the new condition negates a None mask.

1 open finding
What changed in this PR

Prevents unnecessary reference-ID renumbering when copying complete surveys.

Changes:

  • Renumbers reference IDs only when the complement mask excludes entries.
File Description
geoh5py/​objects/​surveys/​base.py Conditionally renumbers copied survey references.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread geoh5py/objects/surveys/base.py Outdated
@codecov

codecov Bot commented Oct 13, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.02%. Comparing base (7a264e4) to head (959d4f4).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop     #995   +/-   ##
========================================
  Coverage    91.02%   91.02%           
========================================
  Files          130      130           
  Lines        11324    11325    +1     
  Branches      2090     2091    +1     
========================================
+ Hits         10308    10309    +1     
  Misses         531      531           
  Partials       485      485           
Files with missing lines Coverage Δ
geoh5py/objects/surveys/base.py 92.53% <100.00%> (+0.11%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@domfournier
domfournier merged commit d82c1ee into develop Oct 13, 2026
24 checks passed
@domfournier
domfournier deleted the GEOPY-3100 branch October 13, 2026 19:28
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.

3 participants