Skip to content

Commit 6b651c0

Browse files
Jammy2211Jammy2211
authored andcommitted
delaunay array fixes
1 parent 9fc3e6d commit 6b651c0

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

autoarray/inversion/mesh/interpolator/delaunay.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ def delaunay(self) -> "scipy.spatial.Delaunay":
455455
points, simplices, mappings, split_points, splitted_mappings = (
456456
jax_delaunay(
457457
points=self.mesh_grid_xy,
458-
query_points=self.data_grid.over_sampled,
458+
query_points=self.data_grid.over_sampled.array,
459459
areas_factor=self.mesh.areas_factor,
460460
)
461461
)
@@ -465,7 +465,7 @@ def delaunay(self) -> "scipy.spatial.Delaunay":
465465
points, simplices, mappings, split_points, splitted_mappings = (
466466
scipy_delaunay(
467467
points_np=self.mesh_grid_xy,
468-
query_points_np=self.data_grid.over_sampled,
468+
query_points_np=self.data_grid.over_sampled.array,
469469
areas_factor=self.mesh.areas_factor,
470470
)
471471
)
@@ -478,14 +478,14 @@ def delaunay(self) -> "scipy.spatial.Delaunay":
478478

479479
points, simplices, mappings = jax_delaunay_matern(
480480
points=self.mesh_grid_xy,
481-
query_points=self.data_grid.over_sampled,
481+
query_points=self.data_grid.over_sampled.array,
482482
)
483483

484484
else:
485485

486486
points, simplices, mappings = scipy_delaunay_matern(
487487
points_np=self.mesh_grid_xy,
488-
query_points_np=self.data_grid.over_sampled,
488+
query_points_np=self.data_grid.over_sampled.array,
489489
)
490490

491491
split_points = None

0 commit comments

Comments
 (0)