Skip to content

Commit 640c1bb

Browse files
committed
Merge branch 'master' of https://github.com/tommyod/KDEpy
2 parents 6004e1f + 4162b5a commit 640c1bb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

KDEpy/TreeKDE.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,8 @@ def evaluate(self, grid_points=None, eps=10e-4):
155155

156156
# Query for data points that are close to this grid point
157157
# TODO: Is this epsilon value sensible?
158+
# Scipy 1.3.0 introduced error: ValueError: ndarray is not C-contiguous
159+
grid_point = np.ascontiguousarray(grid_point)
158160
indices = tree.query_ball_point(
159161
x=grid_point, r=kernel_radius, p=self.norm, eps=eps * obs ** 0.5
160162
)

0 commit comments

Comments
 (0)