Skip to content

Commit 6982c5c

Browse files
committed
Update test_dlcc.py
1 parent 184a8be commit 6982c5c

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

deeptrack/tests/test_dlcc.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -893,12 +893,12 @@ def random_ellipse_axes():
893893

894894
## PART 2.1
895895
np.random.seed(123) # Note that this seeding is not warratied
896-
# to give reproducible results across
897-
# platforms so the subsequent test might fail
896+
# to give reproducible results across
897+
# platforms so the subsequent test might fail
898898

899899

900900
ellipse = dt.Ellipsoid(
901-
radius = random_ellipse_axes,
901+
radius=random_ellipse_axes,
902902
intensity=lambda: np.random.uniform(0.5, 1.5),
903903
position=lambda: np.random.uniform(2, train_image_size - 2,
904904
size=2),
@@ -929,6 +929,7 @@ def random_ellipse_axes():
929929
[1.27309201], [1.00711876], [0.66359776]]]
930930
)
931931
image = sim_im_pip()
932+
print(image)
932933
assert np.allclose(image, expected_image, atol=1e-8)
933934
image = sim_im_pip()
934935
assert np.allclose(image, expected_image, atol=1e-8)
@@ -943,7 +944,7 @@ def random_ellipse_axes():
943944
# platforms so the subsequent test might fail
944945

945946
ellipse = dt.Ellipsoid(
946-
radius = random_ellipse_axes,
947+
radius=random_ellipse_axes,
947948
intensity=lambda: np.random.uniform(0.5, 1.5),
948949
position=lambda: np.random.uniform(2, train_image_size - 2,
949950
size=2),
@@ -991,7 +992,7 @@ def random_ellipse_axes():
991992
# platforms so the subsequent test might fail
992993

993994
ellipse = dt.Ellipsoid(
994-
radius = random_ellipse_axes,
995+
radius=random_ellipse_axes,
995996
intensity=lambda: np.random.uniform(0.5, 1.5),
996997
position=lambda: np.random.uniform(2, train_image_size - 2,
997998
size=2),
@@ -1061,7 +1062,7 @@ def random_ellipse_axes():
10611062
# platforms so the subsequent test might fail
10621063

10631064
ellipse = dt.Ellipsoid(
1064-
radius = random_ellipse_axes,
1065+
radius=random_ellipse_axes,
10651066
intensity=lambda: np.random.uniform(0.5, 1.5),
10661067
position=lambda: np.random.uniform(2, train_image_size - 2,
10671068
size=2),

0 commit comments

Comments
 (0)