psychoinformatics-de / remodnav

Robust Eye Movement Detection for Natural Viewing
Other
59 stars 16 forks source link

Safeguard against edgecases with only nan velocities #36

Closed adswa closed 2 years ago

adswa commented 2 years ago

We never hit this due to higher sampling rates, but #35 reports an unfortunate clash of data properties that cause a crash due to data segments with only nan velocities being processed. This is not a pretty but at least a basic safeguard. Any output that suffers from such a condition does not have a number of properties, such as peak velocity, average velocity or amplitude as a result, simply because they can't be computed.