From 0ee2f1929906cbec457e4d95f9c68d68cbb52da9 Mon Sep 17 00:00:00 2001 From: Edoardo Pasca Date: Fri, 2 Nov 2018 16:37:09 +0000 Subject: added build variants (#160) fixed unit test for python2.7 --- Wrappers/Python/conda-recipe/conda_build_config.yaml | 4 ++++ Wrappers/Python/conda-recipe/run_test.py | 7 +++++-- 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 Wrappers/Python/conda-recipe/conda_build_config.yaml diff --git a/Wrappers/Python/conda-recipe/conda_build_config.yaml b/Wrappers/Python/conda-recipe/conda_build_config.yaml new file mode 100644 index 0000000..5dd08f5 --- /dev/null +++ b/Wrappers/Python/conda-recipe/conda_build_config.yaml @@ -0,0 +1,4 @@ +python: + - 2.7 # [not win] + - 3.5 + - 3.6 diff --git a/Wrappers/Python/conda-recipe/run_test.py b/Wrappers/Python/conda-recipe/run_test.py index ce09808..c1dc59b 100755 --- a/Wrappers/Python/conda-recipe/run_test.py +++ b/Wrappers/Python/conda-recipe/run_test.py @@ -670,8 +670,11 @@ class TestAlgorithms(unittest.TestCase): Phantom = ImageData(geometry=ig) x = Phantom.as_array() - x[round(N/4):round(3*N/4),round(N/4):round(3*N/4)] = 0.5 - x[round(N/8):round(7*N/8),round(3*N/8):round(5*N/8)] = 1 + + x[int(round(N/4)):int(round(3*N/4)), + int(round(N/4)):int(round(3*N/4))] = 0.5 + x[int(round(N/8)):int(round(7*N/8)), + int(round(3*N/8)):int(round(5*N/8))] = 1 # Identity operator for denoising -- cgit v1.2.3