8000 Merge pull request #5411 from lesteve/fix-plot-tomography-l1-reconstr… · imaculate/scikit-learn@c0c2c73 · GitHub
[go: up one dir, main page]

Skip to content

Commit c0c2c73

Browse files
committed
Merge pull request scikit-learn#5411 from lesteve/fix-plot-tomography-l1-reconstruction-example
[MRG] Fix plot_tomography_l1_reconstruction example
2 parents 3301893 + 02b9a72 commit c0c2c73

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)
0