From 167c8eeeb6d67a457c87caa414fc35adad73e4dd Mon Sep 17 00:00:00 2001 From: Ivo Flipse Date: Thu, 18 Jun 2015 22:08:34 +0200 Subject: [PATCH] I hadn't realized when I changed orientations to an array, that its actually just an int and the original code said range(orientations), so I changed it to np.arange(orientations). Hopefully the tests will now pass again --- skimage/feature/_hog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skimage/feature/_hog.py b/skimage/feature/_hog.py index 743597b0..64bb1221 100644 --- a/skimage/feature/_hog.py +++ b/skimage/feature/_hog.py @@ -124,7 +124,7 @@ def hog(image, orientations=9, pixels_per_cell=(8, 8), from .. import draw radius = min(cx, cy) // 2 - 1 - orientations_arr = np.array(orientations) + orientations_arr = np.arange(orientations) dx_arr = radius * np.cos(orientations_arr / orientations_arr * np.pi) dy_arr = radius * np.sin(orientations_arr / orientations_arr * np.pi)