Skip to content

Commit 83179f4

Browse files
committedDec 17, 2019
Minor change to blink detection
1 parent 222d22a commit 83179f4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎PyTrack/Stimulus.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ def findBlinks(self, pupil_size, gaze=None, sampling_freq=1000, concat=False, co
212212
return blinks, pupil_size, gaze
213213

214214
# Edge Case 2: the data starts with a blink. In this case, blink onset will be defined as the first missing value.
215-
if ((len(blink_onset) > 0 and blink_onset[0] > 0) or (len(blink_onset) < len(blink_offset))) and pupil_size[0] == -1:
215+
if ((len(blink_onset) < len(blink_offset)) or ((len(blink_onset) == len(blink_offset)) and (blink_onset[0] > blink_offset[0]))) and pupil_size[0] == -1:
216216
blink_onset = np.hstack((0, blink_onset))
217217

218218
# Edge Case 3: the data ends with a blink. In this case, blink offset will be defined as the last missing sample

‎setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
setuptools.setup(
77
name="PyTrack-NTU",
8-
version="0.0.14",
8+
version="1.0.1",
99
author="Upamanyu Ghose, Arvind Srinivasan",
1010
author_email="titoghose@gmail.com, 96arvind@gmail.com",
1111
description="An end-to-end python analysis toolkit for eye tracking",

0 commit comments

Comments
 (0)
Please sign in to comment.