Wrap long lines.

This commit is contained in:
Tomas Kazmar
2012-08-16 16:16:56 +02:00
parent 31ba6a59b4
commit 5efb3d41c2
+8 -4
View File
@@ -198,13 +198,17 @@ def test_orientation():
orientation2 = regionprops(SAMPLE.T, ['Orientation'])[0]['Orientation']
assert_almost_equal(orientation2, math.pi / 2 - orientation)
# test diagonal regions
orientation_diag = regionprops(np.eye(10, dtype=int), ['Orientation'])[0]['Orientation']
diag = np.eye(10, dtype=int)
orientation_diag = regionprops(diag, ['Orientation'])[0]['Orientation']
assert_almost_equal(orientation_diag, -math.pi / 4)
orientation_diag = regionprops(np.flipud(np.eye(10, dtype=int)), ['Orientation'])[0]['Orientation']
orientation_diag = regionprops(np.flipud(diag), ['Orientation']
)[0]['Orientation']
assert_almost_equal(orientation_diag, math.pi / 4)
orientation_diag = regionprops(np.fliplr(np.eye(10, dtype=int)), ['Orientation'])[0]['Orientation']
orientation_diag = regionprops(np.fliplr(diag), ['Orientation']
)[0]['Orientation']
assert_almost_equal(orientation_diag, math.pi / 4)
orientation_diag = regionprops(np.fliplr(np.flipud(np.eye(10, dtype=int))), ['Orientation'])[0]['Orientation']
orientation_diag = regionprops(np.fliplr(np.flipud(diag)), ['Orientation']
)[0]['Orientation']
assert_almost_equal(orientation_diag, -math.pi / 4)
def test_perimeter():