tmalsburg/saccades

Error in detect.fixations

jgeller112 opened this issue · 6 comments

I am not sure if it is my computer, but running your example data

data(samples)
head(samples)
fixations <- detect.fixations(samples)

returns this warning message:
In max(x, na.rm = TRUE) : no non-missing arguments to max; returning -Inf


It also does it with other data I process through the function.

Okay, I checked: This is happening in the calculation of the time at which events end. If the trial ends during a blink, the blink's end time cannot be determined. As a result you get -Inf as the end time. Perhaps not the most elegant solution, and the warning is certainly annoying. But, as you say, the results are otherwise correct. I will see how this can be improved. Thanks for reporting.

The warning message should no longer appear in the latest version. Could you please confirm with your data set? Thanks.