-
Notifications
You must be signed in to change notification settings - Fork 16
Flaky test #34
Copy link
Copy link
Open
Description
I've seen this test past and fail over many reruns of the test battery.
=================================================================================================================== FAILURES ===================================================================================================================
______________________________________________________________________________________________________________ test_too_long_pso _______________________________________________________________________________________________________________
def test_too_long_pso():
samp = ut.mk_gaze_sample(
pre_fix=1000,
post_fix=1000,
sacc=20,
sacc_dist=200,
# just under 30deg/s (max smooth pursuit)
pso=80,
pso_dist=100)
data = ut.expand_samp(samp, y=0.0)
clf = d.EyegazeClassifier(
max_initial_saccade_freq=.2,
**common_args)
p = clf.preproc(data, dilate_nan=0)
events = clf(p)
events = ut.events2df(events)
# there is no PSO detected
> assert list(events['label']) == ['FIXA', 'SACC', 'FIXA']
E AssertionError: assert ['FIXA', 'SAC...PURS', 'FIXA'] == ['FIXA', 'SACC', 'FIXA']
E Left contains 2 more items, first extra item: 'PURS'
E Full diff:
E - ['FIXA', 'SACC', 'FIXA']
E + ['FIXA', 'SACC', 'FIXA', 'PURS', 'FIXA']
E ? ++++++++++++++++
remodnav/tests/test_detect.py:83: AssertionError
=============================================================================================================== warnings summary ===============================================================================================================
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels