PEP8 style changes for transform.radon_transform and its tests

This commit is contained in:
Jostein Bø Fløystad
2013-05-27 20:42:59 +02:00
parent 8208293c93
commit c9ae913d32
2 changed files with 8 additions and 6 deletions
@@ -105,6 +105,7 @@ def test_reconstruct_with_wrong_angles():
iradon(p, theta=[0, 1, 2])
assert_raises(ValueError, iradon, p, theta=[0, 1, 2, 3])
def test_radon_circle():
a = np.ones((10, 10))
assert_raises(ValueError, radon, a, circle=True)
@@ -131,6 +132,7 @@ def test_radon_circle():
print(relative_error.max(), relative_error.mean())
assert np.all(relative_error < 3e-3)
def test_radon_iradon_circle():
shape = (61, 79)
# Synthetic random data, zero outside reconstruction circle