From f79582ecb476e660c9fbcb846ac0deedb90f2313 Mon Sep 17 00:00:00 2001 From: Ankit Agrawal Date: Fri, 5 Jul 2013 01:34:17 +0800 Subject: [PATCH] Attempt to solve circular import issue --- skimage/measure/_sum_blocks.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/skimage/measure/_sum_blocks.py b/skimage/measure/_sum_blocks.py index b349f3e6..bfba0089 100644 --- a/skimage/measure/_sum_blocks.py +++ b/skimage/measure/_sum_blocks.py @@ -1,9 +1,6 @@ -from ..transform._warps import _downsample - - def sum_blocks(array, factors): - """Sums the elements in blocks of integer factors and pads the original - array with zeroes if the dimensions are not perfectly divisible by factors. + """Sums the elements in blocks of integer factors and pads the original + array with zeroes if the dimensions are not perfectly divisible by factors. This function is different from resize and rescale in transform._warps in the sense that they use interpolation to upsample or downsample on a 2D @@ -37,4 +34,6 @@ def sum_blocks(array, factors): [33, 27]]) """ - return _downsample(array, factors) + return _downsample(array, factors) + +from ..transform._warps import _downsample