@@ -221,7 +221,7 @@ def as_float32_array(a: ArrayLike) -> NDArrayFloat:
221221 Examples
222222 --------
223223 >>> as_float32_array([1, 2, 3]) # doctest: +ELLIPSIS
224- array([ 1., 2., 3 .]...)
224+ array([...1...,...2...,...3.. .]...)
225225 """
226226
227227 return as_float_array (a , dtype = DTYPE_FLOAT_DEFAULT )
@@ -314,14 +314,14 @@ def swatch_colours(image: ArrayLike, masks: ArrayLike) -> NDArrayFloat:
314314 >>> xx, yy = np.meshgrid(x, y)
315315 >>> image = tstack([xx, yy, zeros(xx.shape)])
316316 >>> swatch_colours(image, swatch_masks(16, 8, 4, 2, 1)) # doctest: +ELLIPSIS
317- array([[ 0.1 ..., 0.2142857 ..., 0. ...],
318- [ 0.3666666 ..., 0.2142857 ..., 0. ...],
319- [ 0.6333333 ..., 0.2142857 ..., 0. ...],
320- [ 0.9 ..., 0.2142857 ..., 0. ...],
321- [ 0.1 ..., 0.7857142 ..., 0. ...],
322- [ 0.3666666 ..., 0.7857142 ..., 0. ...],
323- [ 0.6333333 ..., 0.7857142 ..., 0. ...],
324- [ 0.9 ..., 0.7857142 ..., 0. ...]]...)
317+ array([[... 0.1...,...0.2142 ...,...0 ...],
318+ [...0.3 ...,...0.2142 ...,...0 ...],
319+ [...0.6 ...,...0.2142 ...,...0 ...],
320+ [... 0.9...,...0.2142 ...,...0 ...],
321+ [... 0.1...,...0.7857 ...,...0 ...],
322+ [...0.3 ...,...0.7857 ...,...0 ...],
323+ [...0.6 ...,...0.7857 ...,...0 ...],
324+ [... 0.9...,...0.7857 ...,...0 ...]]...)
325325 """
326326
327327 image = as_array (image )
0 commit comments