This file was created from the following Jupyter-notebook: example_datasets.ipynb
Interactive version: Binder badge

Example datasets included in pypillometry

pypillometry comes with a set of example dataset for convenience (so that you can easily start trying the package).

Some smaller datasets are included directly in the package, others will be downloaded when requested. The datasets can be retrieved with the get_dataset() function.

[1]:
import sys
sys.path.insert(0,"..") # this is not needed if you have installed pypillometry
import pypillometry as pp

You can get an overview over all available datasets:

[6]:
pp.get_available_datasets()
[6]:
Dataset Type Description
0 rlmw_002 ASC (OSF) Binocular data from a 20-minute reinforcement ...
1 rlmw_002_short ASC (local) Short version (first 40 sec) of a 20-minute re...
2 rlmw_010_edf EDF Binocular data from a 20-minute reinforcement ...

Using the identifier, you can load the dataset into python using the get_example_data() function

[8]:
pp.get_example_data("rlmw_002")
002_rlmw_samples.asc: 100%|██████████| 35.1M/35.1M [00:03<00:00, 11.8MiB/s]
002_rlmw_events.asc: 100%|██████████| 1.07M/1.07M [00:00<00:00, 5.16MiB/s]
[8]:
EyeData(test short, 59.3MiB):
 n                   : 597301
 sampling_rate       : 500.0
 data                : ['left_x', 'left_y', 'left_pupil', 'right_x', 'right_y', 'right_pupil']
 nevents             : 1320
 screen_limits       : ((0, 1280), (0, 1024))
 physical_screen_size: (30, 20)
 screen_eye_distance : not set
 duration_minutes    : 19.910033333333335
 start_min           : 0.0
 end_min             : 19.91
 parameters          : {}
 glimpse             : EyeDataDict(vars=6,n=597301,shape=(597301,)):
  left_x (float64): 655.6, 655.7, 655.0, 654.5, 655.0...
  left_y (float64): 599.9, 598.9, 597.6, 597.8, 597.8...
  left_pupil (float64): 1121.0, 1122.0, 1124.0, 1126.0, 1126.0...
  right_x (float64): 773.1, 773.8, 774.8, 776.3, 776.7...
  right_y (float64): 594.2, 593.9, 596.5, 597.4, 597.3...
  right_pupil (float64): 949.0, 951.0, 956.0, 959.0, 960.0...

 eyes                : ['left', 'right']
 nblinks             : {}
 blinks              : {'left': None, 'right': None}
 params              : {}
 History:
 *
 └ fill_time_discontinuities()
  └ reset_time()
This file was created from the following Jupyter-notebook: example_datasets.ipynb
Interactive version: Binder badge