We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33a8aaf commit eb5e8eaCopy full SHA for eb5e8ea
examples/Examples.ipynb
@@ -185,7 +185,7 @@
185
"size = int(32) # size of image\n",
186
"im = np.zeros((size,size)) # create zero image\n",
187
"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",
+ "im[(points[0]).astype(np.int32), (points[1]).astype(np.int32)] = size # seed high values\n",
189
"im = ndimage.gaussian_filter(im, sigma=size/(float(4)*n)) # smooth high values into surrounding areas\n",
190
"im *= 1/np.max(im)# rescale to be in the range [0,1]\n",
191
"rgba_im = img_as_ubyte(jet(im)) # convert the values to rgba image using the jet colormap\n",
0 commit comments