etcomp icon indicating copy to clipboard operation
etcomp copied to clipboard

Saccade detection error (due to scipy version)

Open jakeck1 opened this issue 5 years ago • 0 comments

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.

jakeck1 avatar Oct 20 '20 10:10 jakeck1