Skip to content

Commit

Permalink
Update test_filter_datasets.py
Browse files Browse the repository at this point in the history
  • Loading branch information
hkhanuja authored Dec 16, 2023
1 parent a4d8803 commit c3cbb68
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/test_filter_datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,3 +453,12 @@ def test_filter_scanpaths_by_length(fixation_trains, intervals):
inds = [0, 2]
expected_scanpaths = scanpaths.filter_fixation_trains(inds)
compare_scanpaths(filtered_scanpaths, expected_scanpaths)


def test_remove_stimuli_without_fixations(file_stimuli_with_attributes, fixation_trains):
fixations = fixation_trains[:]
filtered_stimuli, filtered_fixations = remove_stimuli_without_fixations(file_stimuli_with_attributes, fixations)
inds = [0, 1]
expected_stimuli, expected_fixations = create_subset(file_stimuli_with_attributes, fixations, inds)
compare_fixations(filtered_fixations, expected_fixations)
assert_stimuli_equal(filtered_stimuli, expected_stimuli)

0 comments on commit c3cbb68

Please sign in to comment.