Skip to content

GEOPY-2813: Triangulation crash on input surface#393

Open
domfournier wants to merge 2 commits intorelease/GA_4.8from
GEOPY-2813
Open

GEOPY-2813: Triangulation crash on input surface#393
domfournier wants to merge 2 commits intorelease/GA_4.8from
GEOPY-2813

Conversation

@domfournier
Copy link
Copy Markdown
Collaborator

@domfournier domfournier commented Apr 28, 2026

GEOPY-2813 - Triangulation crash on input surface

Copilot AI review requested due to automatic review settings April 28, 2026 22:13
@github-actions github-actions Bot changed the title GEOPY-2813 GEOPY-2813: Triangulation crash on input surface Apr 28, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the 1D EM driver to pass surface triangulation into the topography draping helper, aligning Base1D behavior with other parts of the codebase that already provide triangulations for Surface-based topography.

Changes:

  • Import Surface and conditionally pass topography_object.cells as the triangulation argument to topo_drape_elevation when the topography object is a Surface.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread simpeg_drivers/electromagnetics/base_1d_driver.py
Copy link
Copy Markdown
Contributor

@MatthieuCMira MatthieuCMira left a comment

Choose a reason for hiding this comment

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

good for me.

# Move this file out of the test directory and run.

target_run = {"data_norm": 380.3510229653626, "phi_d": 33100, "phi_m": 209}
target_run = {"data_norm": 381.0495293422212, "phi_d": 33400, "phi_m": 198}
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.

ahahah, I guess that's good.
But could you just explain why those small differences?
The original function did not changed right?

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