alexander-pastukhov / eyelinkReader

R package to import eye tracking recording generated by SR Research Eyelink eye tracker from EDF-files. It includes options to import events and/or recorded samples and extract individual events such as saccades, fixatoins, blinks, and recorded variables.
https://alexander-pastukhov.github.io/eyelinkReader/
11 stars 3 forks source link

Feature request: More silent reading of EDF files #5

Open alexholcombe opened 1 month ago

alexholcombe commented 1 month ago

Would be good to have a way to suppress the messages that for me always seem to occur when reading an EDF file, such as:

loadEvents = 1
setTrial End:  TRIAL_RESULT
loadEvents = 0

I confess I don't know exactly what these mean but they seem to reflect expected events, so it confuses users to see them printed out, especially in the context of code reading in a lot of EDFs, where these messages could drown out more informativ messages.

I don't understand the Eyelinks EDFAPI, but I'm wondering whether a silent=TRUE parameter could be optionally passed to e.g. extract_saccades, just as it is passed to extract_display_coords?

Maybe I could work on this if so. Thank you again for the package!

alexander-pastukhov commented 1 month ago

@alexholcombe I'll take a look. This is not my code but rather EDF API messages. I will try to figure out whether it is possible to suppress them. Just to be sure: This happens when you call read_edf(), correct?

alexholcombe commented 1 month ago

@alexander-pastukhov yes, but it's only a minor thing; there are probably higher priorities for the package, but point me to the associated call if you find it; I don't understand how the C bindings work.

alexander-pastukhov commented 1 month ago

@alexholcombe I've reached out to SR-Research and apparently these are debugging messages accidentally left over. They promised to turn them off in the upcoming release of the DevKit. I'll close the issue once it is no longer an issue (just to remind myself not to forget to check it).