Skip to content

Commit fc7fdcd

Browse files
CLN: Remove bloated generated notebooks and dynamically bundle datasets in CI
1 parent 48c9bd1 commit fc7fdcd

132 files changed

Lines changed: 51 additions & 40092 deletions

File tree

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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,3 +103,5 @@ venv/
103103
.hypothesis/
104104
.ruff_cache/
105105
.ipynb_checkpoints/
106+
jupyterlite_contents/auto_tutorials
107+
jupyterlite_contents/mne_data

doc/conf.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -510,6 +510,21 @@
510510
d.parent.mkdir(parents=True, exist_ok=True)
511511
shutil.copy2(s, d)
512512

513+
# Also inject SSVEP and EEGLAB testing datasets for JupyterLite
514+
mne_data_base = Path(os.path.expanduser("~/mne_data"))
515+
lite_data_base = Path(os.path.abspath(os.path.dirname(__file__))) / "jupyterlite_contents" / "mne_data"
516+
517+
src_ssvep = mne_data_base / "ssvep-example-data"
518+
dst_ssvep = lite_data_base / "ssvep-example-data"
519+
if src_ssvep.exists() and not dst_ssvep.exists():
520+
shutil.copytree(src_ssvep, dst_ssvep, dirs_exist_ok=True)
521+
522+
src_eeglab = mne_data_base / "MNE-testing-data" / "EEGLAB"
523+
dst_eeglab = lite_data_base / "MNE-testing-data" / "EEGLAB"
524+
if src_eeglab.exists() and not dst_eeglab.exists():
525+
shutil.copytree(src_eeglab, dst_eeglab, dirs_exist_ok=True)
526+
527+
513528
# Build the local MNE wheel so JupyterLite can use the current development version
514529
dist_lite_dir = os.path.join(
515530
os.path.abspath(os.path.dirname(__file__)), "_build", "dist_lite"

0 commit comments

Comments
 (0)