From 3f6f90ae5a90fde8d96c7e0940c559310cc58546 Mon Sep 17 00:00:00 2001 From: Paul McCarthy <pauldmccarthy@gmail.com> Date: Fri, 12 Oct 2018 12:44:27 +0100 Subject: [PATCH] TEST: Avoid numpy warning --- tests/test_imagewrapper.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/test_imagewrapper.py b/tests/test_imagewrapper.py index 1237cd55d..61ed5c21b 100644 --- a/tests/test_imagewrapper.py +++ b/tests/test_imagewrapper.py @@ -465,7 +465,10 @@ def _test_expansion(coverage, slices, volumes, expansions): # coverage, or in one of the expansions. dimranges = [] for d in range(ndims): - dimranges.append(np.linspace(nc[0, d], nc[1, d], nc[1, d] / 5, dtype=np.uint32)) + dimranges.append(np.linspace(nc[0, d], + nc[1, d], + int(nc[1, d] / 5), + dtype=np.uint32)) points = it.product(*dimranges) -- GitLab