From da86b8fb5a32957269f5d1b08f647eb8f4b42abc Mon Sep 17 00:00:00 2001 From: Jammy2211 Date: Wed, 11 Feb 2026 22:39:34 +0000 Subject: [PATCH] found bug with over sampled grid incorrectly being passed to mapepr grids --- autoarray/inversion/pixelization/mesh/delaunay.py | 2 +- autoarray/structures/mesh/delaunay_2d.py | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/autoarray/inversion/pixelization/mesh/delaunay.py b/autoarray/inversion/pixelization/mesh/delaunay.py index ba7ca379c..8bcc4ee5c 100644 --- a/autoarray/inversion/pixelization/mesh/delaunay.py +++ b/autoarray/inversion/pixelization/mesh/delaunay.py @@ -126,7 +126,7 @@ def mapper_grids_from( relocated_mesh_grid = self.relocated_mesh_grid_from( border_relocator=border_relocator, - source_plane_data_grid=Grid2DIrregular(relocated_grid.over_sampled), + source_plane_data_grid=source_plane_data_grid, source_plane_mesh_grid=source_plane_mesh_grid, xp=xp, ) diff --git a/autoarray/structures/mesh/delaunay_2d.py b/autoarray/structures/mesh/delaunay_2d.py index a4086bab1..98dcea80d 100644 --- a/autoarray/structures/mesh/delaunay_2d.py +++ b/autoarray/structures/mesh/delaunay_2d.py @@ -42,12 +42,7 @@ def scipy_delaunay(points_np, query_points_np, use_voronoi_areas, areas_factor): if use_voronoi_areas: - try: - areas = voronoi_areas_numpy(points) - except Exception as e: - # Qhull precision problems -> fallback - print(f"[pure_callback] Voronoi failed ({type(e).__name__}); falling back to barycentric areas.") - areas = barycentric_dual_area_from(points, simplices, xp=np) + areas = voronoi_areas_numpy(points) max_area = np.percentile(areas, 90.0)