@@ -238,7 +238,7 @@ def trigger_click(self, _):
238238 delaunay_2d .points [ # pylint: disable=unsupported-assignment-operation
239239 :, 1
240240 ] = np .ravel (z_locations )
241- indx = np .ones (delaunay_2d .simplices .shape [0 ], dtype = bool )
241+ index = np .ones (delaunay_2d .simplices .shape [0 ], dtype = bool )
242242 for i in range (3 ):
243243 length = np .linalg .norm (
244244 delaunay_2d .points [ # pylint: disable=unsubscriptable-object
@@ -249,10 +249,10 @@ def trigger_click(self, _):
249249 ],
250250 axis = 1 ,
251251 )
252- indx *= length < self .max_distance .value
252+ index *= length < self .max_distance .value
253253
254254 # Remove the simplices too long
255- delaunay_2d .simplices = delaunay_2d .simplices [indx , :]
255+ delaunay_2d .simplices = delaunay_2d .simplices [index , :]
256256 model_vertices .append (
257257 np .c_ [
258258 np .ravel (x_locations ),
@@ -285,7 +285,7 @@ def trigger_click(self, _):
285285
286286 delaunay_2d = Delaunay (locations [:, :2 ])
287287
288- indx = np .ones (delaunay_2d .simplices .shape [0 ], dtype = bool )
288+ index = np .ones (delaunay_2d .simplices .shape [0 ], dtype = bool )
289289 for i in range (3 ):
290290 length = np .linalg .norm (
291291 delaunay_2d .points [ # pylint: disable=unsubscriptable-object
@@ -296,10 +296,10 @@ def trigger_click(self, _):
296296 ],
297297 axis = 1 ,
298298 )
299- indx *= length < self .max_distance .value
299+ index *= length < self .max_distance .value
300300
301301 # Remove the simplices too long
302- delaunay_2d .simplices = delaunay_2d .simplices [indx , :]
302+ delaunay_2d .simplices = delaunay_2d .simplices [index , :]
303303
304304 model_vertices = np .c_ [delaunay_2d .points , locations [:, 2 ]]
305305 model_cells = delaunay_2d .simplices
0 commit comments