Skip to content

Commit 4090e51

Browse files
committed
[TEST] Adding test to play with cg
1 parent 3a7b871 commit 4090e51

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

test/test_modules/test_cg/__init__.py

Whitespace-only changes.
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import gempy as gp
2+
from gempy.core.data.enumerators import ExampleModel
3+
from gempy.optional_dependencies import require_gempy_viewer
4+
from gempy_engine.core.data.interp_output import InterpOutput
5+
6+
from test.verify_helper import gempy_verify_array
7+
import pytest
8+
from test.conftest import TEST_SPEED, TestSpeed
9+
10+
PLOT = True
11+
12+
13+
def test_generate_greenstone_model():
14+
model = gp.generate_example_model(ExampleModel.GREENSTONE, compute_model=False)
15+
print(model.structural_frame)
16+
17+
sol = gp.compute_model(
18+
gempy_model=model,
19+
engine_config=gp.data.GemPyEngineConfig(
20+
backend=gp.data.AvailableBackends.PYTORCH,
21+
use_gpu=False,
22+
dtype='float32'
23+
)
24+
)
25+
26+
if PLOT:
27+
gpv = require_gempy_viewer()
28+
gpv.plot_3d(model, image=True)

0 commit comments

Comments
 (0)