From 0cafab772974f6847f1e28f30628ac4489a0f176 Mon Sep 17 00:00:00 2001 From: Sihui Zhang <42986258+ZhangSihui999@users.noreply.github.com> Date: Wed, 23 Oct 2024 13:53:41 +0200 Subject: [PATCH] Update import_eyelink.m correct import for both eyes --- src/Import/eyelink/import_eyelink.m | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Import/eyelink/import_eyelink.m b/src/Import/eyelink/import_eyelink.m index 15f94186b..12d7a5a18 100644 --- a/src/Import/eyelink/import_eyelink.m +++ b/src/Import/eyelink/import_eyelink.m @@ -387,7 +387,11 @@ parts = split(msg); chan_info{sess_idx}.track_mode = parts{4}; chan_info{sess_idx}.sr = str2num(parts{5}); - chan_info{sess_idx}.eyesObserved = parts{8}; + if length(parts)>8 + chan_info{sess_idx}.eyesObserved = parts{10}; + else + chan_info{sess_idx}.eyesObserved = parts{8}; + end elseif contains(msg, pupil_str) parts = split(msg); chan_info{sess_idx}.diam_vals = lower(parts{2});