Skip to content

[GUI] Add sample recordings to eegprep[full] - #883

Merged
arnodelorme merged 3 commits into
developfrom
agent/issue-866
Dec 1, 2026
Merged

arnodelorme merged 3 commits into
developfrom
agent/issue-866

Conversation

@arnodelorme

Copy link
Copy Markdown
Collaborator

The full and all extras now install eegprep-sample-data 1.0.0, published on PyPI from packages/eegprep-sample-data, so eegprep-console cont and epoch open the two sample recordings from an installed EEGPrep. The console looks in the source checkout first, then in that package. A slow test builds both wheels, installs them in a fresh environment, and starts the console in both modes.

Fixes #866

The full and all extras install eegprep-sample-data, published on PyPI from
packages/eegprep-sample-data, so eegprep-console cont and epoch open the two
sample recordings from an installed EEGPrep. The console looks in the source
checkout first, then in that package. Fixes #866.

@claude claude Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Code review skipped — your organization has no extra usage available to pay for this review.

If your organization's extra usage balance is empty, an organization admin can add extra usage credits at claude.ai/admin-settings/usage. If its monthly spend limit was reached, an admin can raise it on the same page. If neither applies, contact Anthropic support.

Once extra usage is available, someone with write access to this repository can comment @claude review on this pull request to trigger a review.

@claude

claude Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @arnodelorme's task in 53s —— View job


Code review

  • Overall assessment: Looks good. This only changes packaging and how the console finds the sample files. It does not change any EEGLAB numerical code, so no MATLAB reference run is needed.
  • Highest-risk area: the order in which _sample_recording looks for the files in src/eegprep/functions/adminfunc/console.py.
  • Merge recommendation: Safe to merge.

Blocking

None.

Important

None.

Nits

None.

Test gaps

None. The new slow test builds both wheels and installs them in a fresh, isolated environment. It checks that the packaged .set/.fdt files are byte-identical to sample_data/ and starts the console in both cont and epoch modes. The existing parametrized test now sets eegprep_sample_data to None, so it still covers the case where no sample data is available.

EEGLAB parity notes

None. The console still loads the files with pop_loadset and records a pop_loadset(...) history line, as before.

What I checked

  • Where the console looks: _sample_recording checks a source checkout first. It still requires src/eegprep to sit beside sample_data, as before. Then it checks eegprep_sample_data.path(). A recording is used only if its .fdt file is also present. If both places miss, it logs the improved message, which now names both pip install "eegprep[full]" and pip install eegprep-sample-data.
  • Optional import: the top-level try/except ImportError around eegprep_sample_data is the optional-dependency guard that AGENTS.md allows.
  • Fresh-install test: a plain base install should be enough. console loads IPython only inside _ipython_shell_factory, main_window imports no Qt at module level, and the test swaps in its own shell and GUI launcher.
  • Extras: full and all both require eegprep-sample-data>=1.0.0, and the base dependencies do not. uv.lock resolves version 1.0.0 from PyPI with both a wheel and an sdist. test_optional_extras asserts the new extras, and that all contains everything in full.
  • Package build: package-data includes data/*.set and data/*.fdt. The .gitignore exceptions only affect that folder. The main eegprep wheel still finds packages only under src, so the 7 MB of recordings stay out of a plain pip install eegprep.
  • Docs: README, changelog, FAQ, installation, the interactive console page, releasing.rst (how to release the new package by hand) and EXTRA_SUMMARY all describe the new behavior the same way.

Checked for correctness bugs, EEGLAB parity, data structure compatibility, changed-behavior tests, and CLAUDE.md/AGENTS.md compliance.

# Conflicts:
#	README.md
#	docs/source/changelog.rst
#	docs/source/faq.rst
#	docs/source/user_guide/installation.rst
#	src/eegprep/extras.py
#	tests/test_optional_extras.py
#	uv.lock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

eegprep-console cont and epoch: bring the two sample recordings with the full extra

1 participant