Skip to content

Commit a4c9ed9

Browse files
committed
[TEST] Fixing some tests in gempy by correcting a dataclass and make by default not to compute gradient of the scalar field
1 parent f9daefb commit a4c9ed9

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

gempy/core/data/grid_modules/grid_types.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@ class RegularGrid:
2020
extent: np.ndarray #: this is the ORTHOGONAL extent. If the grid is rotated, the extent will be different
2121
values: np.ndarray
2222
mask_topo: np.ndarray
23-
x: Optional[np.ndarray]
24-
y: Optional[np.ndarray]
25-
z: Optional[np.ndarray]
2623
_transform: Transform #: If a transform exists, it will be applied to the grid
2724

2825
def __init__(self, extent: np.ndarray, resolution: np.ndarray, transform: Optional[Transform] = None):

test/test_api/test_backends.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
class TestBackends:
1313
@pytest.fixture(scope='class')
1414
def geo_model(self):
15-
geo_model: gp.GeoModel = gp.generate_example_model(
15+
geo_model: gp.data.GeoModel = gp.generate_example_model(
1616
example_model=ExampleModel.ONE_FAULT,
1717
compute_model=False
1818
)

test/test_api/test_initialization_and_compute_api.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@
99

1010
def test_api_create_data():
1111
geo_data = _create_data()
12-
12+
1313
pprint(geo_data)
14+
1415
return geo_data
1516

1617

0 commit comments

Comments
 (0)