Skip to content

Commit d6957ce

Browse files
committed
Fix overflowing fi cut for first_looks, bump version
1 parent 5396a10 commit d6957ce

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

eyewit/DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: eyewit
22
Title: Bootstrapping Common Eyetracking Tasks around Tobii’s I-VT Filter
3-
Version: 0.4.7
3+
Version: 0.4.8
44
Date: 2022-02-22
55
Authors@R:
66
person("Steven", "Kalinke", , "[email protected]", role = c("aut", "cre"),

eyewit/R/get_looks.R

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -469,6 +469,13 @@ get_looks <- function(df,
469469
first_looks_collection[[hn]]$first_look_initial_timestamp <- df$timestamp[fi_pairs$fistart[i]]
470470
}
471471

472+
# if this is the last fixation and since this if-block tracks if we are in an overflowing fixation
473+
# we can set the ending reason to trialend and and make a forced_stop for the first_looks_collection
474+
current_first_look_ending_reason[[hn]] <- "trialend"
475+
first_looks_collection[[hn]]$forced_stop <- TRUE
476+
# overwrite current_first_look_duration[[hn]] to include saccades and error data and not only fixations
477+
current_first_look_duration[[hn]] <- end_ms - first_looks_collection[[hn]]$first_look_initial_timestamp
478+
472479
if (
473480
first_looks_collection[[hn]]$found_first && !first_looks_collection[[hn]]$forced_stop &&
474481
(

0 commit comments

Comments
 (0)