Skip to content

GEOPY-2793: Add conversion from/to maxwell plate with test#194

Merged
domfournier merged 13 commits intodevelopfrom
GEOPY-2793
Apr 14, 2026
Merged

GEOPY-2793: Add conversion from/to maxwell plate with test#194
domfournier merged 13 commits intodevelopfrom
GEOPY-2793

Conversation

@benk-mira
Copy link
Copy Markdown
Contributor

@benk-mira benk-mira commented Apr 10, 2026

GEOPY-2793 - Add conversion between Plate model from and to Maxwell plates

Copilot AI review requested due to automatic review settings April 10, 2026 22:20
@benk-mira benk-mira changed the title Add conversion from/to maxwell plate with test GEOPY-2793 Apr 10, 2026
@github-actions github-actions bot changed the title GEOPY-2793 GEOPY-2793: Add conversion from/to maxwell plate with test Apr 10, 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

Adds interoperability between geoapps_utils.modelling.plates.Plate/PlateModel and geoh5py’s MaxwellPlate geometry, along with an integration test to validate round-tripping and warning behavior.

Changes:

  • Added PlateModel <-> PlateGeometry conversion helpers (including a warning when rotation/plunge is present).
  • Added Plate <-> MaxwellPlate conversion methods.
  • Added an integration test covering to_maxwell_plate / from_maxwell_plate and warning emission.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
geoapps_utils/modelling/plates.py Introduces conversion helpers between internal plate parameters and geoh5py Maxwell plate geometry/object.
tests/plates_test.py Adds a round-trip integration test using a workspace and validating a warning when rotation is set.

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

Comment thread geoapps_utils/modelling/plates.py
Comment thread geoapps_utils/modelling/plates.py Outdated
Comment thread geoapps_utils/modelling/plates.py Outdated
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 10, 2026

Codecov Report

❌ Patch coverage is 84.21053% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 85.59%. Comparing base (68e21fa) to head (1e35c8c).
⚠️ Report is 14 commits behind head on develop.

Files with missing lines Patch % Lines
geoapps_utils/modelling/plates.py 84.21% 1 Missing and 2 partials ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #194      +/-   ##
===========================================
+ Coverage    85.52%   85.59%   +0.06%     
===========================================
  Files           19       19              
  Lines         1161     1180      +19     
  Branches       151      153       +2     
===========================================
+ Hits           993     1010      +17     
  Misses         129      129              
- Partials        39       41       +2     
Files with missing lines Coverage Δ
geoapps_utils/modelling/plates.py 79.26% <84.21%> (+3.07%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

benk-mira and others added 4 commits April 10, 2026 15:27
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…ke length mixed up. Should improve geoh5py docs.
Comment thread tests/plates_test.py Outdated
Comment thread geoapps_utils/modelling/plates.py Outdated
Comment thread geoapps_utils/modelling/plates.py Outdated
benk-mira and others added 7 commits April 13, 2026 12:20
Co-authored-by: domfournier <dominiquef@mirageoscience.com>
Co-authored-by: domfournier <dominiquef@mirageoscience.com>
# Conflicts:
#	geoapps_utils/modelling/plates.py
#	tests/plates_test.py
@domfournier domfournier merged commit 6b26f39 into develop Apr 14, 2026
20 checks passed
@domfournier domfournier deleted the GEOPY-2793 branch April 14, 2026 17:12
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