Skip to content

Commit eb5e8ea

Browse files
committed
Fix deprecation
1 parent 33a8aaf commit eb5e8ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/Examples.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@
185185
"size = int(32) # size of image\n",
186186
"im = np.zeros((size,size)) # create zero image\n",
187187
"points = size*np.random.random((2, n**2)) # locations of seed values\n",
188-
"im[(points[0]).astype(np.int), (points[1]).astype(np.int)] = size # seed high values\n",
188+
"im[(points[0]).astype(np.int32), (points[1]).astype(np.int32)] = size # seed high values\n",
189189
"im = ndimage.gaussian_filter(im, sigma=size/(float(4)*n)) # smooth high values into surrounding areas\n",
190190
"im *= 1/np.max(im)# rescale to be in the range [0,1]\n",
191191
"rgba_im = img_as_ubyte(jet(im)) # convert the values to rgba image using the jet colormap\n",

0 commit comments

Comments
 (0)