Skip to content

Commit bc233ea

Browse files
authored
Merge pull request #212 from Jammy2211/featur/final_border_Fix
feature/final_border_fix
2 parents 994e695 + da86b8f commit bc233ea

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

autoarray/inversion/pixelization/mesh/delaunay.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def mapper_grids_from(
126126

127127
relocated_mesh_grid = self.relocated_mesh_grid_from(
128128
border_relocator=border_relocator,
129-
source_plane_data_grid=Grid2DIrregular(relocated_grid.over_sampled),
129+
source_plane_data_grid=source_plane_data_grid,
130130
source_plane_mesh_grid=source_plane_mesh_grid,
131131
xp=xp,
132132
)

autoarray/structures/mesh/delaunay_2d.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,7 @@ def scipy_delaunay(points_np, query_points_np, use_voronoi_areas, areas_factor):
4242

4343
if use_voronoi_areas:
4444

45-
try:
46-
areas = voronoi_areas_numpy(points)
47-
except Exception as e:
48-
# Qhull precision problems -> fallback
49-
print(f"[pure_callback] Voronoi failed ({type(e).__name__}); falling back to barycentric areas.")
50-
areas = barycentric_dual_area_from(points, simplices, xp=np)
45+
areas = voronoi_areas_numpy(points)
5146

5247
max_area = np.percentile(areas, 90.0)
5348

0 commit comments

Comments
 (0)