summaryrefslogtreecommitdiffstats
path: root/Wrappers
diff options
context:
space:
mode:
authorEdoardo Pasca <edo.paskino@gmail.com>2018-11-02 16:37:09 +0000
committerGitHub <noreply@github.com>2018-11-02 16:37:09 +0000
commit0ee2f1929906cbec457e4d95f9c68d68cbb52da9 (patch)
treeaf830208103e1c6573aece1477d4fc522cf3c49d /Wrappers
parent8584140e4db56fe998f9780dbc8d75a9aa3a72fe (diff)
downloadframework-0ee2f1929906cbec457e4d95f9c68d68cbb52da9.tar.gz
framework-0ee2f1929906cbec457e4d95f9c68d68cbb52da9.tar.bz2
framework-0ee2f1929906cbec457e4d95f9c68d68cbb52da9.tar.xz
framework-0ee2f1929906cbec457e4d95f9c68d68cbb52da9.zip
added build variants (#160)
fixed unit test for python2.7
Diffstat (limited to 'Wrappers')
-rw-r--r--Wrappers/Python/conda-recipe/conda_build_config.yaml4
-rwxr-xr-xWrappers/Python/conda-recipe/run_test.py7
2 files changed, 9 insertions, 2 deletions
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