Commit 4e473de
Avoid triggering warnings in mandelbrot example. (#13226)
... namely
```
examples/showcase/mandelbrot.py:17: DeprecationWarning: object of type <class 'float'> cannot be safely interpreted as an integer.
X = np.linspace(xmin, xmax, xn).astype(np.float32)
examples/showcase/mandelbrot.py:18: DeprecationWarning: object of type <class 'float'> cannot be safely interpreted as an integer.
Y = np.linspace(ymin, ymax, yn).astype(np.float32)
```
plus some minor cleanups.1 parent 6f0a313 commit 4e473de
1 file changed
Lines changed: 5 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
37 | | - | |
| 36 | + | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
51 | | - | |
52 | | - | |
| 50 | + | |
53 | 51 | | |
54 | 52 | | |
55 | 53 | | |
56 | 54 | | |
57 | 55 | | |
58 | | - | |
| 56 | + | |
59 | 57 | | |
60 | 58 | | |
61 | 59 | | |
| |||
0 commit comments