From 416f3a2eb55c8815717cb8ba3cd1d78d55fb7250 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C4=9Bj=20T=C3=BD=C4=8D?= Date: Mon, 27 Oct 2014 23:33:59 +0100 Subject: [PATCH] numpy 1.6 compat fix --- skimage/measure/_ccomp.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skimage/measure/_ccomp.pyx b/skimage/measure/_ccomp.pyx index be0148cf..bed57069 100644 --- a/skimage/measure/_ccomp.pyx +++ b/skimage/measure/_ccomp.pyx @@ -323,7 +323,7 @@ def label(input, DTYPE_t neighbors=8, background=None, return_num=False): # Having data a 2D array slows down access considerably using linear # indices even when using the data_p pointer :-( - data = np.copy(input.flatten().astype(DTYPE), order="C") + data = np.copy(input.flatten().astype(DTYPE)) forest = np.arange(data.size, dtype=DTYPE) cdef DTYPE_t *forest_p = forest.data