Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[TEST] Adding test to play with cg
  • Loading branch information
Leguark committed Sep 25, 2025
commit ec7d4a11875194401947c65cbb3762b028c2fc6b
Empty file.
28 changes: 28 additions & 0 deletions test/test_modules/test_cg/test_cg_solver.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import gempy as gp
from gempy.core.data.enumerators import ExampleModel
from gempy.optional_dependencies import require_gempy_viewer
from gempy_engine.core.data.interp_output import InterpOutput

from test.verify_helper import gempy_verify_array
import pytest
from test.conftest import TEST_SPEED, TestSpeed

PLOT = True


def test_generate_greenstone_model():
model = gp.generate_example_model(ExampleModel.GREENSTONE, compute_model=False)
print(model.structural_frame)

sol = gp.compute_model(
gempy_model=model,
engine_config=gp.data.GemPyEngineConfig(
backend=gp.data.AvailableBackends.PYTORCH,
use_gpu=False,
dtype='float32'
)
)

if PLOT:
gpv = require_gempy_viewer()
gpv.plot_3d(model, image=True)