{ "cells": [ { "cell_type": "markdown", "id": "5e46b7a9", "metadata": {}, "source": [ "# Example datasets included in `pypillometry`\n", "\n", "`pypillometry` comes with a set of example datasets so that you can start trying out the package right away.\n", "\n", "Small datasets are included in the package itself; larger ones are downloaded from OSF the first time they are requested and stored in a cache directory (`~/.cache/pypillometry` by default), so later calls do not download them again." ] }, { "cell_type": "code", "execution_count": 1, "id": "696960c2", "metadata": { "execution": { "iopub.execute_input": "2026-10-28T11:28:58.679525Z", "iopub.status.busy": "2026-10-28T11:28:58.679368Z", "iopub.status.idle": "2026-10-28T11:29:00.463447Z", "shell.execute_reply": "2026-10-28T11:29:00.462180Z" } }, "outputs": [], "source": [ "import pypillometry as pp" ] }, { "cell_type": "markdown", "id": "ca0ce5b9", "metadata": {}, "source": [ "You can get an overview of all available datasets with `get_available_datasets()`:" ] }, { "cell_type": "code", "execution_count": 2, "id": "7845ac19", "metadata": { "execution": { "iopub.execute_input": "2026-10-28T11:29:00.466385Z", "iopub.status.busy": "2026-10-28T11:29:00.465710Z", "iopub.status.idle": "2026-10-28T11:29:00.488989Z", "shell.execute_reply": "2026-10-28T11:29:00.487844Z" } }, "outputs": [ { "data": { "text/html": [ "
| \n", " | Dataset | \n", "Type | \n", "Description | \n", "
|---|---|---|---|
| 0 | \n", "rlmw_002 | \n", "ASC (OSF) | \n", "Binocular data from a 20-minute reinforcement ... | \n", "
| 1 | \n", "rlmw_002_short | \n", "ASC (local) | \n", "Short version (first 40 sec) of a 20-minute re... | \n", "
| 2 | \n", "rlmw_010_edf | \n", "EDF | \n", "Binocular data from a 20-minute reinforcement ... | \n", "
EyeDataDict(vars=6,n=20465,shape=(20465,)): \n",
" left_x (float64): 655.6, 655.7, 655.0, 654.5, 655.0...\n",
" left_y (float64): 599.9, 598.9, 597.6, 597.8, 597.8...\n",
" left_pupil (float64): 1121.0, 1122.0, 1124.0, 1126.0, 1126.0...\n",
" right_x (float64): 773.1, 773.8, 774.8, 776.3, 776.7...\n",
" right_y (float64): 594.2, 593.9, 596.5, 597.4, 597.3...\n",
" right_pupil (float64): 949.0, 951.0, 956.0, 959.0, 960.0...\n",
"\n",
"