Conversation
There was a problem hiding this comment.
Pull request overview
This PR updates the Plate Match workflow to be more robust and diagnostic by adding explicit error handling for missing simulation directories, refining the matching/scoring pipeline (including spatial interpolation and normalization), and attaching per-query profile plots to generated plate outputs. It also refreshes multiple conda lock files to newer dependency revisions.
Changes:
- Raise a
GeoAppsErrorwhen the simulations directory is missing inPlateMatchOptions.simulation_files. - Update
PlateMatchDriverscoring/normalization logic, add log suppression during options parsing, and attach a generated PNG profile to each created plate. - Regenerate/update conda lockfiles and environment lockfiles (including updated git SHAs for geoapps-utils/geoh5py/mira-simpeg).
Reviewed changes
Copilot reviewed 17 out of 17 changed files in this pull request and generated 12 comments.
Show a summary per file
| File | Description |
|---|---|
simpeg_drivers/plate_simulation/match/options.py |
Adds a missing-directory guard for simulation file discovery. |
simpeg_drivers/plate_simulation/match/driver.py |
Adds logging suppression, updates spatial interpolation + normalization/scoring, and generates/attaches diagnostic plots. |
py-3.12.conda-lock.yml |
Updates locked dependencies (including geoapps-utils/geoh5py/mira-simpeg revisions). |
py-3.13.conda-lock.yml |
Updates locked dependencies (including geoapps-utils/geoh5py/mira-simpeg revisions). |
py-3.14.conda-lock.yml |
Updates locked dependencies (including geoapps-utils/geoh5py/mira-simpeg revisions). |
environments/py-3.14-win-64.conda.lock.yml |
Updates env lock versions and git SHAs. |
environments/py-3.14-win-64-dev.conda.lock.yml |
Updates dev env lock versions and git SHAs. |
environments/py-3.14-linux-64.conda.lock.yml |
Updates env lock versions and git SHAs. |
environments/py-3.14-linux-64-dev.conda.lock.yml |
Updates dev env lock versions and git SHAs. |
environments/py-3.13-win-64.conda.lock.yml |
Updates env lock versions and git SHAs. |
environments/py-3.13-win-64-dev.conda.lock.yml |
Updates dev env lock versions and git SHAs. |
environments/py-3.13-linux-64.conda.lock.yml |
Updates env lock versions and git SHAs. |
environments/py-3.13-linux-64-dev.conda.lock.yml |
Updates dev env lock versions and git SHAs. |
environments/py-3.12-win-64.conda.lock.yml |
Updates env lock versions and git SHAs. |
environments/py-3.12-win-64-dev.conda.lock.yml |
Updates dev env lock versions; notably switches some pip deps to @develop and pins simpeg-drivers to the feature branch. |
environments/py-3.12-linux-64.conda.lock.yml |
Updates env lock versions and git SHAs. |
environments/py-3.12-linux-64-dev.conda.lock.yml |
Updates dev env lock versions and git SHAs. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Agent-Logs-Url: https://github.com/MiraGeoscience/simpeg-drivers/sessions/5b024b64-b5f4-42ff-b10e-b52592459dd1 Co-authored-by: domfournier <55204635+domfournier@users.noreply.github.com>
# Conflicts: # py-3.12.conda-lock.yml # py-3.13.conda-lock.yml # py-3.14.conda-lock.yml
There was a problem hiding this comment.
I have not a lot of comment on the code itself.
Can you just add description to the PR so I know what you are trying to achieve?
As you said yourself, the tests are not completed with the figure.
Moreover, why did you changed the interpolation method? was it poorly working?
If it's the case, a non-regression test should be implemented
Nobody had their hands on this yet, so I am not too worried about change in behaviour. What else did you have in mind specifically? |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## release/GA_4.8 #379 +/- ##
==================================================
+ Coverage 90.21% 90.27% +0.06%
==================================================
Files 131 131
Lines 6497 6543 +46
Branches 809 810 +1
==================================================
+ Hits 5861 5907 +46
Misses 427 427
Partials 209 209
🚀 New features to boost your workflow:
|
benk-mira
left a comment
There was a problem hiding this comment.
Sorry, didn't notice Matthieu already took a pass on this one until I was well underway. I've got a couple notes to add.
|
|
||
| dir_correction = strike_angle[ii] + 180 if flip else strike_angle[ii] | ||
| ind_center = int(centers[best]) | ||
| plate = self._create_plate_from_parameters( |
There was a problem hiding this comment.
We've got Plate -> MaxwellPlate conversion in geoapps-utils now. Can we reuse here?
There was a problem hiding this comment.
Not directly because we still need to convert from local to world coordinates, and apply the extra rotation from the strike_angle data
Co-authored-by: benk-mira <81254271+benk-mira@users.noreply.github.com>
Co-authored-by: benk-mira <81254271+benk-mira@users.noreply.github.com>
No description provided.