Hello everyone - Just was seeking some assistance on how to extract data from the "pupil_positions.npy" and similar files the system produces. A bit about my build, I have the Pupil Pro headset with binocular 120Hz eye cameras and it seems to be working fine on a Windows 7 machine that has dual boot Ubuntu 14.04 LTS.
On a second windows machine (windows 7, 64 bit) I am attempting to use Python for the very first time to look at the data. The text below is what I am doing, VERY basic, just trying to open the pupil data file. Until I can get better at using this software, my goal is just to convert it to .csv file so I can manipulate in excel or matlab even (yes, I know how to do one or two things in that) ha!
I took the .npy file from the Ubuntu system and put it on the desktop of the system with Python and Numpy installed. I am not quite certain how to set the directory, or similar, like I remember in matlab. So I just placed the "pupil_positions.npy" file on my desktop. I would like to see the data, maybe plot it in numpy, but ultimately save as .cvs.
Any hep would be greatly appreciated!
Thanks,
Jay
Python 3.4.1 (v3.4.1:c0e311e010fc, May 18 2014, 10:38:22) [MSC v.1600 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> import numpy as np
>>> np.__version__
'1.8.1'
>>> pupil_positions =np.load("pupil_positions.npy")
print p[:,5]
SyntaxError: multiple statements found while compiling a single statement
>>> pupil_positions =np.load("pupil_positions.npy")
Traceback (most recent call last):
File "<pyshell#3>", line 1, in <module>
pupil_positions =np.load("pupil_positions.npy")
File "C:\Python34\lib\site-packages\numpy\lib\npyio.py", line 370, in load
fid = open(file, "rb")
FileNotFoundError: [Errno 2] No such file or directory: 'pupil_positions.npy'
>>>