Skip to content

Commit ddbec19

Browse files
Jammy2211Jammy2211
authored andcommitted
.array on knn
1 parent 6b651c0 commit ddbec19

File tree

1 file changed

+2
-2
lines changed
  • autoarray/inversion/mesh/interpolator

1 file changed

+2
-2
lines changed

autoarray/inversion/mesh/interpolator/knn.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,9 @@ class InterpolatorKNearestNeighbor(InterpolatorDelaunay):
147147
def _mappings_sizes_weights(self):
148148

149149
try:
150-
query_points = self.data_grid.over_sampled
150+
query_points = self.data_grid.over_sampled.array
151151
except AttributeError:
152-
query_points = self.data_grid
152+
query_points = self.data_grid.array
153153

154154
mappings, weights, _ = get_interpolation_weights(
155155
points=self.mesh_grid_xy,

0 commit comments

Comments
 (0)