1 (.venv) ixixiyo@muhsheen pl-neon-recording % pip list 2 Package Version Editable project location 3 ----------------- ------------------ ------------------------------------------- 4 av 12.2.0 5 numpy 2.0.0 6 pandas 2.2.2 7 pip 24.1.2 8 pl-neon-recording 0.1.dev15+gf051693 /Users/ixixiyo/Downloads/pl-neon-recording 9 protobuf 5.27.2 10 python-dateutil 2.9.0.post0 11 pytz 2024.1 12 scipy 1.14.0 13 setuptools 65.5.0 14 six 1.16.0 15 structlog 24.2.0 16 tzdata 2024.1 17 (.venv) ixixiyo@muhsheen pl-neon-recording % python 18 Python 3.10.14 (main, Mar 28 2024, 10:59:40) [Clang 15.0.0 (clang-1500.3.9.4)] on darwin 19 Type "help", "copyright", "credits" or "license" for more information. 20 >>> import pupil_labs.neon_recording as nr 21 2024-07-16T10:33:10.245128Z [info ] NeonRecording: package loaded. func_name= 22 >>> recording = nr.load('../mydata/2024-07-10-15-39-35') 23 2024-07-16T10:33:20.859592Z [info ] NeonRecording: Loading recording from ../mydata/2024-07-10-15-39-35 func_name=__init__ 24 2024-07-16T10:33:20.859877Z [info ] NeonRecording: Loading recording info func_name=__init__ 25 2024-07-16T10:33:20.862139Z [info ] NeonRecording: Loading wearer func_name=__init__ 26 2024-07-16T10:33:20.863093Z [info ] NeonRecording: Loading calibration data func_name=__init__ 27 2024-07-16T10:33:20.865124Z [info ] NeonRecording: Loading data streams func_name=__init__ 28 2024-07-16T10:33:20.865246Z [info ] NeonRecording: Finished loading recording. func_name=__init__ 29 >>> for stream_name, stream in recording.streams.items(): 30 ... print(f"\t{stream_name}") 31 ... 32 >>> for d in recording.gaze.sample(recording.gaze.ts[:5]): 33 ... print(d.ts, d.x, d.y) 34 ... 35 2024-07-16T10:34:02.544723Z [info ] NeonRecording: Loading gaze data func_name=__init__ 36 2024-07-16T10:34:02.545175Z [info ] NeonRecording: Using realtime gaze data func_name=__init__ 37 1720622375.683613 721.32294 815.63196 38 1720622375.693614 740.33685 811.15405 39 1720622375.6986141 746.9168 811.1748 40 1720622375.703625 739.6691 833.4019 41 1720622375.708613 741.45966 822.1391 42 >>> for stream_name, stream in recording.streams.items(): 43 ... print(f"\t{stream_name}") 44 ... 45 gaze 46 >>> recording.scene.ts[:3] 47 2024-07-16T10:34:31.329642Z [info ] NeonRecording: Loading video: Neon Scene Camera v1. func_name=__init__ 48 array([1.72062238e+09, 1.72062238e+09, 1.72062238e+09]) 49 >>> for stream_name, stream in recording.streams.items(): 50 ... print(f"\t{stream_name}") 51 ... 52 gaze 53 scene 54 >>> recording.imu 55 2024-07-16T10:34:57.849797Z [info ] NeonRecording: Loading IMU data func_name=__init__ 56 /Users/ixixiyo/Downloads/pl-neon-recording/src/pupil_labs/neon_recording/stream/imu/imu_stream.py:76: RuntimeWarning: overflow encountered in scalar add 57 packet_bytes = buffer[index: index + packet_size] 58 /Users/ixixiyo/Downloads/pl-neon-recording/src/pupil_labs/neon_recording/stream/imu/imu_stream.py:77: RuntimeWarning: overflow encountered in scalar add 59 index += packet_size 60 Traceback (most recent call last): 61 File "", line 1, in 62 File "/Users/ixixiyo/Downloads/pl-neon-recording/src/pupil_labs/neon_recording/neon_recording.py", line 79, in imu 63 self.streams["imu"] = IMUStream(self) 64 File "/Users/ixixiyo/Downloads/pl-neon-recording/src/pupil_labs/neon_recording/stream/imu/imu_stream.py", line 42, in __init__ 65 rotation = Rotation.from_quat( 66 File "_rotation.pyx", line 997, in scipy.spatial.transform._rotation.Rotation.from_quat 67 File "_rotation.pyx", line 855, in scipy.spatial.transform._rotation.Rotation.__init__ 68 ValueError: Found zero norm quaternions in `quat`. 69 >>> import os 70 >>> os.listdir('../mydata/2024-07-10-15-39-35') 71 ['android.log.zip', '.DS_Store', 'gaze_right ps1.time', 'template.json', 'Neon Sensor Module v1 ps1.time_aux', 'extimu ps1.raw', 'gaze_right ps1.raw', 'eye_state ps1.time', 'Neon Sensor Module v1_sae_log_1.bin', 'info.json~', 'Neon Sensor Module v1 ps1.time', 'gaze ps1.time', 'wearer.json', 'event.txt', 'event.time', 'Neon Scene Camera v1 ps1.time', 'worn ps1.raw', 'gaze ps1.raw', 'extimu ps1.time', 'Neon Scene Camera v1 ps1.time_aux', 'Neon Scene Camera v1 ps1.mp4', 'Neon Sensor Module v1 ps1.mp4', 'info.json', 'calibration.bin', 'export', 'eye_state ps1.raw', 'imu.proto'] 72 >>>