Skip to content

Commit

Permalink
Merge pull request #123 from cbrnr/test-segments
Browse files Browse the repository at this point in the history
Test segments
  • Loading branch information
agricolab authored Nov 26, 2024
2 parents b00546f + fe9989d commit b3178f0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pyxdf/test/test_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,8 @@ def test_load_file(file):

np.testing.assert_array_equal(streams[1]["clock_times"], clock_times)
np.testing.assert_array_almost_equal(streams[1]["clock_values"], clock_values)

streams, header = load_xdf(
file, jitter_break_threshold_seconds=0.001, jitter_break_threshold_samples=1
)
assert streams[0]["info"]["segments"] == [(0, 0), (1, 3), (4, 8)]

0 comments on commit b3178f0

Please sign in to comment.