Skip to content

Commit 02b9a72

Browse files
committed
DOC Fix plot_tomography_l1_reconstruction example
numpy 1.10 raises an exception when doing inplace operation with an int and float array.
1 parent 16fcb15 commit 02b9a72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/applications/plot_tomography_l1_reconstruction.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def _weights(x, dx=1, orig=0):
5656

5757

5858
def _generate_center_coordinates(l_x):
59-
X, Y = np.mgrid[:l_x, :l_x]
59+
X, Y = np.mgrid[:l_x, :l_x].astype(np.float64)
6060
center = l_x / 2.
6161
X += 0.5 - center
6262
Y += 0.5 - center

0 commit comments

Comments
 (0)