summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2019-04-04 15:59:02 +0200
committerWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2019-09-25 14:10:10 +0200
commitb595d260193b39981834211682ff41fd1a91e398 (patch)
tree54f9a1f36b88e7a16d146e1bb875d5b926503239
parentf944d9a95d3cd7c70a137b23147368dc15039c7f (diff)
downloadastra-b595d260193b39981834211682ff41fd1a91e398.tar.gz
astra-b595d260193b39981834211682ff41fd1a91e398.tar.bz2
astra-b595d260193b39981834211682ff41fd1a91e398.tar.xz
astra-b595d260193b39981834211682ff41fd1a91e398.zip
Enable all 2D projector tests
-rw-r--r--tests/python/test_line2d.py6
-rw-r--r--tests/python/test_rec_scaling.py7
2 files changed, 8 insertions, 5 deletions
diff --git a/tests/python/test_line2d.py b/tests/python/test_line2d.py
index 8b6e200..e5d8f2b 100644
--- a/tests/python/test_line2d.py
+++ b/tests/python/test_line2d.py
@@ -7,9 +7,9 @@ import pylab
# Display sinograms with mismatch on test failure
DISPLAY=False
-NONUNITDET=False
-OBLIQUE=False
-FLEXVOL=False
+NONUNITDET=True
+OBLIQUE=True
+FLEXVOL=True
NONSQUARE=False # non-square pixels not supported yet by most projectors
# Round interpolation weight to 8 bits to emulate CUDA texture unit precision
diff --git a/tests/python/test_rec_scaling.py b/tests/python/test_rec_scaling.py
index d656edc..1bd3267 100644
--- a/tests/python/test_rec_scaling.py
+++ b/tests/python/test_rec_scaling.py
@@ -43,6 +43,8 @@ def ProjectionGeometries(type):
class TestRecScale(unittest.TestCase):
def single_test(self, geom_type, proj_type, alg, iters):
+ if alg == 'FBP' and 'fanflat' in geom_type:
+ self.skipTest('CPU FBP is parallel-beam only')
is3D = (geom_type in ['parallel3d', 'cone'])
for vg in VolumeGeometries(is3D, 'FDK' not in alg):
for pg in ProjectionGeometries(geom_type):
@@ -88,7 +90,7 @@ class TestRecScale(unittest.TestCase):
else:
pylab.imshow(rec[:,32,:])
pylab.show()
- #self.assertTrue(abs(val-1.0) < TOL)
+ self.assertTrue(abs(val-1.0) < TOL)
__combinations = {
@@ -99,7 +101,8 @@ __combinations = {
}
__algs = {
- 'SIRT': 50, 'SART': 10*180, 'CGLS': 30, 'FBP': 1
+ 'SIRT': 50, 'SART': 10*180, 'CGLS': 30,
+ 'FBP': 1
}
__algs_CUDA = {