Skip to content

Commit a6a3a52

Browse files
committed
make bursts test updated
1 parent 3d3d1d8 commit a6a3a52

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

neurodsp/tests/sim/test_periodic.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,14 @@ def test_sim_damped_oscillation():
101101
def test_make_bursts():
102102

103103
is_osc = np.array([False, False, True, True, False, True, False, True, True, False])
104-
cycle = np.ones([10])
104+
cycle = np.ones([100])
105105

106106
sig = make_bursts(N_SECONDS, FS, is_osc, cycle)
107107
check_sim_output(sig)
108108

109+
# Three is added since each of the three continuous bursts are fully completed
110+
assert sig.sum() == (is_osc.sum() * 100) + 3
111+
109112
# Test make bursts with uneven division of signal and cycle divisions
110113
# In this test, there aren't enough samples in the signal to add last cycle
111114
is_osc = np.array([False, True, True])

0 commit comments

Comments
 (0)