-
-
Notifications
You must be signed in to change notification settings - Fork 259
[ENH] Add Greenstone example model and CG solver tests #1048
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
+165
−40
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 tasks
Graphite Automations"Add gempy label" took an action on this PR • (09/17/25)1 label was added to this PR based on Miguel de la Varga's automation. |
…ing test Integrated a new `Greenstone` example model into the `generate_example_model` API. Added its binary file and implemented a test for its functionality.
Switched the `use_gpu` configuration to `True` in the CG solver test, ensuring the test runs with GPU acceleration. Removed unused imports for cleanup.
Introduced a `clear_cache` method in the `WeightCache` class for better memory management. Enhanced the numerical stability of the conjugate gradient solver with improved initialization and adaptive tolerances. Refactored interpolation logic to handle weights more efficiently, and adjusted benchmarking to test expanded solver configurations.
Extended CG solver tests to include configurations using both the PYTORCH and PYKEOPS backends. Configured tests with varying `use_gpu` and `dtype` options, introduced a new Greenstone model test, and added 3D plotting support in the test suite.
Upgraded `gempy_viewer` dependency to version 2025.1.4. Adjusted benchmarking configuration to use parallel fork triangulation with 6 levels and disabled benchmarking by default. Enabled debug plotting in `_compute_model_fn.py` for enhanced troubleshooting.
This was referenced Sep 25, 2025
Merged
…uration Deleted redundant `evaluation_chunk_size` parameter adjustments and added `validate_serialization=False` to the `compute_model` call for enhanced model processing flexibility.
Enabled gradient computation in the optimizer initialization by adding the `grads` parameter for enhanced flexibility in optimization workflows.
Merge activity
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Added a new Greenstone example model to GemPy with supporting functionality. The implementation includes:
GREENSTONE
enum toExampleModel
_generate_greenstone_model
function in the examples generatorRelates to #weights-caching-and-cg-solver
Checklist
or 2. verifies that outputs are as expected for given inputs (e.g. unit tests).