TST: Check number of input angles in radon tf.

This commit is contained in:
Stefan van der Walt
2012-07-09 11:29:37 -07:00
parent 4d1809a63c
commit 1dcc172f60
2 changed files with 22 additions and 2 deletions
@@ -97,5 +97,12 @@ def test_radon_minimal():
assert np.all(abs(c - reconstructed) < 0.4)
def test_reconstruct_with_wrong_angles():
a = np.zeros((3, 3))
p = radon(a, theta=[0, 1, 2])
iradon(p, theta=[0, 1, 2])
assert_raises(ValueError, iradon, p, theta=[0, 1, 2, 3])
if __name__ == "__main__":
run_module_suite()