diff options
Diffstat (limited to 'Wrappers')
-rw-r--r-- | Wrappers/Python/conda-recipe/conda_build_config.yaml | 4 | ||||
-rwxr-xr-x | Wrappers/Python/conda-recipe/run_test.py | 7 |
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
|