Skip to content

Commit 4711d26

Browse files
Ramdam17claude
andauthored
feat(datasets): pooch-based fetcher + migrate sample data to HypypData (#260)
* feat(datasets): add pooch-based fetcher and migrate sample data to HypypData Removes all sample data from the HyPyP repo and replaces hardcoded paths with a clean `hypyp.datasets` API backed by pooch, mirroring MNE's dataset convention (~/mne_data/HypypData/). - Add `hypyp/datasets.py`: registry + fetch helpers for EEG (.fif), EEGLAB (.set/.fdt), fNIRS (.snirf, Homer2/NIRX), XDF, and DCARE/FCS01 - Add `pooch>=1.8` dependency to pyproject.toml - Remove all files from `data/` (now served from ppsp-team/HypypData) - Update .gitignore to ignore data/, tutorial/results/ - Refactor `fnirs.DataBrowser` to use MNE-style cache instead of __file__-based root path; pass path= to pooch.retrieve() - Fix `plots.py`: guard y_cuts against None in plot_wavelet_transform_weights - Update all 8 tutorial notebooks to use hypyp.datasets - Update tests: conftest.py, test_fnirs.py, test_xdf.py to use datasets - Add test_datasets.py (20 tests, cold-cache verified) - Add scripts/run_notebooks.sh for sequential notebook execution Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * chore(tutorial): remove wavelet_wtc_in_depth notebook Contains hardcoded paths to private IMAGINE lab data (/home/pfortin/) that cannot be replaced with public HypypData samples. Not suitable for a public tutorial. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 11874e0 commit 4711d26

45 files changed

Lines changed: 966 additions & 1170 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,3 +141,13 @@ _build/
141141
# Preprocessed and results data
142142
data/results/
143143
private/
144+
145+
# Tutorial outputs — generated locally, not committed
146+
tutorial/results/
147+
148+
# Sample data — moved to HypypData repo (https://github.com/ppsp-team/HypypData)
149+
# Only data/Basehead.obj is kept (listed as package_data in pyproject.toml)
150+
data/*.fif
151+
data/EEGLAB/
152+
data/NIRS/
153+
data/XDF/

data/.DS_Store

-6 KB
Binary file not shown.

data/EEGLAB/eeglab_chan32.locs

Lines changed: 0 additions & 32 deletions
This file was deleted.

data/EEGLAB/eeglab_data.fdt

-3.72 MB
Binary file not shown.

data/EEGLAB/eeglab_data.set

-344 KB
Binary file not shown.
-3.75 MB
Binary file not shown.
-225 KB
Binary file not shown.

data/NIRS/DCARE_02_sub1.snirf

-4.38 MB
Binary file not shown.

data/NIRS/DCARE_02_sub2.snirf

-4.38 MB
Binary file not shown.

data/NIRS/MCARE_01_probeInfo.mat

-3.62 MB
Binary file not shown.

0 commit comments

Comments
 (0)