Skip to content

Commit 676f0a8

Browse files
committed
TST: add a unit test for start and end events
1 parent 6b5e011 commit 676f0a8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/eyelinkio/tests/test_edf.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ def test_read_raw():
2525
# XXX: ideally we should get a binocular file with a calibration
2626
assert edf_file["info"]["eye"] == "BINOCULAR"
2727
assert len(edf_file["discrete"]["blinks"]) == 195
28+
np.testing.assert_equal(edf_file["discrete"]["starts"]["stime"][0], 0.0)
29+
np.testing.assert_almost_equal(
30+
edf_file["discrete"]["ends"]["stime"][-1], 199.644
31+
)
2832

2933
elif fname.name == "test_2_raw.edf": # First test file has this property
3034
for kind in ['saccades', 'fixations', 'blinks']:

0 commit comments

Comments
 (0)