Skip to content

Commit

Permalink
fixed bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
marcus-nystrom committed Nov 13, 2023
1 parent d3bd995 commit 307a27b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions demo_experiment/breakout_tobii.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import pandas as pd
from titta import Titta, helpers_tobii as helpers

show_dlg = False
show_dlg = True

#%% Monitor/geometry
MY_MONITOR = 'testMonitor' # needs to exists in PsychoPy monitor center
Expand Down Expand Up @@ -230,8 +230,8 @@ def update(self):
data = tracker.buffer.peek_N('gaze', n_buffer_samples)

# Convert from Tobii coordinate system to ssv
lx = data['left_gaze_on_display_area_x']
rx = data['right_gaze_on_display_area_x']
lx = data['left_gaze_point_on_display_diarea_x']
rx = data['right_gaze_point_on_display_area_x']

# update position only if contains no nan
if np.any(np.isnan(np.array(lx) * np.array(rx))):
Expand All @@ -252,7 +252,7 @@ def update(self):


# Update position of player
self.image.pos = (pos, self.fixed_y)
self.image.pos = (int(pos), self.fixed_y)

#%%
# Create the player paddle object
Expand Down

0 comments on commit 307a27b

Please sign in to comment.