Skip to content

Flaky test #34

@adswa

Description

@adswa

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 ===============================================================================================================

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions