cran / eyelinker

:exclamation: This is a read-only mirror of the CRAN R package repository. eyelinker — Import ASC Files from EyeLink Eye Trackers. Homepage: https://github.com/a-hurst/eyelinker Report bugs for this package: https://github.com/a-hurst/eyelinker/issues
GNU General Public License v3.0
2 stars 2 forks source link

eyelinker detects saccades/fixations/ etc., but does not return $raw tibble #1

Closed johalgermissen closed 4 years ago

johalgermissen commented 4 years ago

Hi Austin,

I'm using eyelinker version 0.2.0. (reinstalled today) to read data from an Eyelink 1000 (https://tsgdoc.socsci.ru.nl/index.php?title=Eyetrackers#EyeLink_1000).

If I use read.asc to read my raw data, I get the following warning:

In process_raw(inp[is_raw], block[is_raw], info) :
  Unknown columns in raw data. Assuming first one is time, please check the others

What happens is that the sacc, fix, blinks, msg, and info tibble all look fine (I don't use input or button), but the raw tibble is empty:

> dat$raw
# A tibble: 1 x 8
  block     time X1    X2       X3 X4    X5       X6
  <dbl>    <int> <lgl> <lgl> <dbl> <lgl> <lgl> <dbl>
1     1 18551731 NA    NA        0 NA    NA        0
> dat$sacc
# A tibble: 138 x 11
   block    stime    etime   dur   sxp   syp   exp   eyp  ampl    pv eye  
   <dbl>    <dbl>    <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <fct>
 1     1 18542043 18542064    22  880.  571.  829.  632.  1.28   129 R    
 2     1 18542634 18542647    14  869.  594.  924.  612.  0.92    86 R    
 3     1 18543202 18543220    19  919.  604.  871.  574.  0.92    72 R    
 4     1 18545827 18545838    12  895.  576.  937.  567.  0.69    65 R    
 5     1 18546877 18546893    17  934.  542.  863.  573   1.23    96 R    
 6     1 18547437 18547451    15  896.  572.  952.  556.  0.93    89 R    
 7     1 18547935 18548271   337  923.  596.  943.  564.  0.61   833 R    
 8     1 18548571 18548578     8  938.  550.  916.  556.  0.37    51 R    
 9     1 18550304 18550309     6  892   581.  906.  585.  0.23    38 R    
10     2 18555296 18555309    14  934.  520   894   511.  0.65    61 R    
# ... with 128 more rows

Any idea how this happens and how to fix it? Thanks already for any pointers!

I used your package about a year ago (May 2019) on data from the same eye-tracker, and everything worked fine---has there been any major update in the package? Unfortunately I can't find back the version I used back then.

Below the first rows of the raw data file:

** CONVERTED FROM s_05_46.EDF using edfapi 3.1 Win32 Jul  4 2014 on Wed Jul 08 16:37:21 2020
** DATE: Wed Jul  8 16:32:49 2020
** TYPE: EDF_FILE BINARY EVENT SAMPLE TAGGED
** VERSION: EYELINK II 1
** SOURCE: EYELINK CL
** EYELINK II CL v4.594 Jul  6 2012
** CAMERA: EyeLink CL Version 1.4 Sensor=BFF
** SERIAL NUMBER: CL1-ACA28
** CAMERA_CONFIG: ACA28140.SCD
**

MSG 18541614 RECCFG CR 1000 2 1 R
MSG 18541614 ELCLCFG MTABLER
MSG 18541614 GAZE_COORDS 0.00 0.00 1919.00 1079.00
MSG 18541614 THRESHOLDS R 69 207
MSG 18541614 ELCL_PROC CENTROID (3)
MSG 18541614 ELCL_PCR_PARAM 5 3.0
START   18541615    RIGHT   SAMPLES EVENTS
PRESCALER   1
VPRESCALER  1
PUPIL   AREA
EVENTS  GAZE    RIGHT   RATE    1000.00 TRACKING    CR  FILTER  2
SAMPLES GAZE    RIGHT   RATE    1000.00 TRACKING    CR  FILTER  2
MSG 18541615 !MODE RECORD CR 1000 2 1 R
18541615      885.2   558.9  1528.0 ...
18541616      885.4   557.4  1526.0 ...
18541617      885.5   556.4  1524.0 ...
18541618      885.2   556.2  1524.0 ...
18541619      884.7   555.9  1524.0 ...
18541620      883.9   556.8  1525.0 ...
johalgermissen commented 4 years ago

Moved to a-hurst's repository