mirror of
https://github.com/wassname/scikit-image.git
synced 2026-09-12 12:50:49 +08:00
PEP8 style changes for transform.radon_transform and its tests
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user