From 0e6e08d0c09f3e80050e099c2d1ff72ba349c05b Mon Sep 17 00:00:00 2001 From: Egor Panfilov Date: Sun, 13 Dec 2015 12:42:48 +0300 Subject: [PATCH] TST: Attempt to fix Travis bug with old packages --- skimage/restoration/inpaint.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/skimage/restoration/inpaint.py b/skimage/restoration/inpaint.py index 813ad6bb..b2c6ee9d 100644 --- a/skimage/restoration/inpaint.py +++ b/skimage/restoration/inpaint.py @@ -150,6 +150,8 @@ def inpaint_biharmonic(img, mask): result[np.where(result < -1)] = -1 result[np.where(result > 1)] = 1 + result = result.ravel() + # Put calculated points into the image for idx, (m, n) in enumerate(mask_mn): out[m, n] = result[idx]