Skip to content

Commit ec72437

Browse files
author
Fabian Pedregosa
committed
FIX: convert lena to float32 (originally it's ints)
Fixes exception in recent scipy.
1 parent 552bc9d commit ec72437

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sklearn/feature_extraction/tests/test_image.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def test_connect_regions_with_grid():
7575

7676

7777
def _downsampled_lena():
78-
lena = sp.misc.lena()
78+
lena = sp.misc.lena().astype(np.float32)
7979
lena = lena[::2, ::2] + lena[1::2, ::2] + lena[::2, 1::2] + \
8080
lena[1::2, 1::2]
8181
lena = lena[::2, ::2] + lena[1::2, ::2] + lena[::2, 1::2] + \

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy