We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0d6e2a2 commit 006bbeeCopy full SHA for 006bbee
autoarray/plot/wrap/two_d/delaunay_drawer.py
@@ -67,13 +67,16 @@ def draw_delaunay_pixels(
67
"pixel_values input to DelaunayPlotter are None and thus cannot be plotted."
68
)
69
70
+ if pixel_values is not None:
71
+ pixel_values = np.asarray(pixel_values)
72
+
73
if ax is None:
74
ax = plt.gca()
75
76
source_pixelization_grid = mapper.mapper_grids.source_plane_mesh_grid
77
78
simplices = mapper.delaunay.simplices
-
79
80
# Remove padded -1 values required for JAX
81
simplices = np.asarray(simplices)
82
valid_mask = np.all(simplices >= 0, axis=1)
0 commit comments