Skip to content

Commit 66caec9

Browse files
committed
Merge remote-tracking branch 'origin/main'
2 parents 5677833 + 3bf56a9 commit 66caec9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

gempy/_version.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@
1212
__version_tuple__: VERSION_TUPLE
1313
version_tuple: VERSION_TUPLE
1414

15-
__version__ = version = '2024.2.0.1'
16-
__version_tuple__ = version_tuple = (2024, 2, 0, 1)
15+
__version__ = version = '2024.2.0.3.dev0+gf344a731.d20240626'
16+
__version_tuple__ = version_tuple = (2024, 2, 0, 3, 'dev0', 'gf344a731.d20240626')

gempy/core/data/core_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import numpy as np
2-
from scipy.interpolate import RegularGridInterpolator, RectBivariateSpline
32

43
from gempy.optional_dependencies import require_scipy
54

@@ -32,11 +31,12 @@ def interpolate_zvals_at_xy(xy, topography, method='DEP'):
3231
Returns:
3332
np.ndarray: z values, i.e., topography along the profile.
3433
"""
34+
scipy = require_scipy()
3535
xj = topography.values_2d[:, 0, 0]
3636
yj = topography.values_2d[0, :, 1]
3737
zj = topography.values_2d[:, :, 2]
3838

39-
spline = RectBivariateSpline(xj, yj, zj)
39+
spline = scipy.interpolate.RectBivariateSpline(xj, yj, zj)
4040
zi = spline.ev(xy[:, 0], xy[:, 1])
4141

4242
return zi

0 commit comments

Comments
 (0)