behinger / etcomp

Project to compare different eyetrackers
MIT License
34 stars 7 forks source link

Saccade detection error (due to scipy version) #34

Open jakeck1 opened 4 years ago

jakeck1 commented 4 years ago

Interpolation of gaze positions as part of the saccade detection routine in /code/functions/detect_saccades.py fails with newer versions of scipy (I tested 1.3, 1.4), throwing the following error

 .../lib/python3.5/site-packages/scipy/interpolate/_cubic.py", line 59, in prepare_input
    raise ValueError("`y` must contain only finite values.")

This is because the PChipInterpolator that is used in the gaze interpolation

interpolate_gaze(etsamples, fs=None)

does not accept NaN as input anymore. Downgrading scipy to e.g. 1.2 fixed the issue.