marcus-nystrom / Titta

Python and PsychoPy interface to Tobii eye trackers using Tobii Pro SDK
Other
61 stars 25 forks source link

Binocular Mean Warning #7

Closed jgeller112 closed 3 years ago

jgeller112 commented 3 years ago

Hello,

I am using your Titta package to run a X2-30 Compact. After the experiment is over, I am getting the below message with the Slideshow demo that comes with the package:

C:\Program Files\PsychoPy3\lib\site-packages\titta\helpers_tobii.py:388: RuntimeWarning: Mean of empty slice
  avg_pos = np.nanmean([xyz_pos_eye_l, xyz_pos_eye_r], axis=0)
C:\Program Files\PsychoPy3\lib\site-packages\titta\Tobii.py:657: RuntimeWarning: Mean of empty slice
  str(int(np.nanmean([l_pos, r_pos])/10.0)), 'cm'])

Is there a way to just output each eye and not average?

marcus-nystrom commented 3 years ago

Hi,

This is warning you can ignore. The warning is related to the visualization of data during the setup screen.

Best, Marcus

On Thu, Oct 8, 2020 at 10:10 PM jgeller112 notifications@github.com wrote:

Hello,

I am running your Titta package to run a X2-30 Compact. After the experiment is over, I am getting the below message.

C:\Program Files\PsychoPy3\lib\site-packages\titta\helpers_tobii.py:388: RuntimeWarning: Mean of empty slice avg_pos = np.nanmean([xyz_pos_eye_l, xyz_pos_eye_r], axis=0) C:\Program Files\PsychoPy3\lib\site-packages\titta\Tobii.py:657: RuntimeWarning: Mean of empty slice str(int(np.nanmean([l_pos, r_pos])/10.0)), 'cm'])

Presumably this is because it is recording 0s for one or both of the eyes?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/marcus-nystrom/Titta/issues/7, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD57FB25C5NTJKOY4LACAR3SJYMEHANCNFSM4SJGQ54Q .

marcus-nystrom commented 3 years ago

Hi,

What is the exact error message? Did you run the read_my.py example? Did that work?

Thanks, Marcus

On Fri, Oct 9, 2020 at 6:07 PM jgeller112 notifications@github.com wrote:

In addition,

I am trying to convert the .pkl file produced to a readable format at the end of the task, but I am not having any luck. I get an error about filename not being an argument in save_data(), which it clearly is.

tracker.stop_recording(gaze_data=True) tracker.save_data(filename='testfile') f = open("testfile.pkl", 'rb') gaze_data_container = pickle.load(f) msg_container = pickle.load(f) external_signal_container = pickle.load(f) sync_data_container = pickle.load(f) stream_errors_container = pickle.load(f) image_data_container = pickle.load(f) calibration_history = pickle.load(f) system_info = pickle.load(f) settings = pickle.load(f) python_version = pickle.load(f) f.close()

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/marcus-nystrom/Titta/issues/7#issuecomment-706268272, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD57FBZDB6IXPYT5OAQXTITSJ4YKTANCNFSM4SJGQ54Q .

jgeller112 commented 3 years ago

Everything works. I was just curious about the warning message.