Skip to content

Commit 05b026c

Browse files
committed
Update test
1 parent 097d6cb commit 05b026c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/test_linepattern.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ def test_select_good_peaks(self):
5858
radius=radius, sigma=sigma)
5959
np.testing.assert_array_equal(result, peaks)
6060
self.assertTrue(len(result) == 2)
61-
tol, radius, sigma = 0.2, 3, 1
61+
list_data = np.array([0, 1, 2, 9, 2, 1, 0, 0, 3, 10, 3, 0, 0])
62+
peaks = np.asarray([3, 9])
63+
tol, radius, sigma = 0.3, 3, 1
6264
result = lipa.select_good_peaks(list_data, peaks, tol=tol,
6365
radius=radius, sigma=sigma)
6466
np.testing.assert_array_equal(result, peaks)

0 commit comments

Comments
 (0)