Skip to content

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

Done

Description

@arnodelorme

🤖 eegprep-console cont and eegprep-console epoch load the two sample recordings only from a source checkout. Arno asked that they also come with the full install, and pull request #837 does not do that part.

Needs Arno

One question needs your answer. You can reply with the letter, for example "1a".

  1. How the full install should bring the two sample recordings. Issue eegprep-console: start with the sample epoched or continuous dataset, like eeglab epoch and eeglab cont #824 eegprep-console: start with the sample epoched or continuous dataset, like eeglab epoch and eeglab cont and pull request [GUI] Load the continuous or epoched sample at console startup #837 [GUI] Load the continuous or epoched sample at console startup. Today they load from a source checkout only, and nothing is implemented until you choose.
    • (a) A small separate package on PyPI (for example eegprep-sample-data, 7.3 MB) that the full extra requires. This is the only option that does exactly what you wrote: the recordings come with pip install "eegprep[full]" and not by default, and they work offline. It costs a second project on PyPI that someone must create and publish once (you or Suraj, who handles the PyPI packaging), and again only if the recordings change. The main wheel keeps its size. The browser version is not touched as long as it does not install full. Recommended.
    • (b) A download at first use. eegprep-console cont or epoch fetches the two files from GitHub into a cache folder the first time, checks them, and reuses them afterwards. Nobody publishes anything and the wheel keeps its size. It needs the network the first time, it adds download code to maintain, and an installed package cannot reliably tell that it was installed with full, so in practice the download would work for every install. The browser version is not concerned, since it has no console.
    • (c) Leave them to the source checkout, as after [GUI] Load the continuous or epoched sample at console startup #837. It costs nothing. People who install from PyPI keep the message that tells them to clone the repository or to download the two files by hand.

— orchestrator

Activity

  1. added
    enhancement
    needs-arno
    on Nov 29, 2026
  2. claude commented on Nov 29, 2026

    @claude
    Contributor

    🤖 Plan:

    • Read issue and check actionability
    • Implement (blocked: waits on Arno choosing 1a, 1b, or 1c)

    Not actionable yet, so no PR. The issue has no definition of done until question 1 is answered, and #837, which this builds on, is still open and unmerged. Each option needs different work: (a) a new PyPI project plus a full extra entry in pyproject.toml and a lookup in the console startup path; (b) a cached download with checksum in the console startup path; (c) nothing.

    Needed to proceed: Arno's letter for question 1, #837 merged, and for (a) the PyPI package name and who publishes it.

  3. arnodelorme commented on Nov 29, 2026

    @arnodelorme
    CollaboratorAuthor

    Arno chose option (a) in his email of November 29, 2026: "Yes, this is fine. ... Create and release that package."

    • Create a small separate package eegprep-sample-data (the name is free on PyPI, checked today) that holds the two sample recordings (continuous and epoched, .set and .fdt, about 7.3 MB) and exposes their folder, for example eegprep_sample_data.path().
    • Add it to the full extra of EEGPrep, and make eegprep-console cont|epoch look for it first when the source checkout's sample_data/ is absent; keep the current message when neither is there.
    • Publish it to PyPI. The PyPI token comes from the Infisical credential profile (~/.pypirc, user __token__); never print it. If upload is refused, say so here under "## Needs Arno" with the exact error.
    • One pull request on develop for the EEGPrep side (branch agent/issue-866), with a test that installs the built wheel in a fresh environment and starts the console with both datasets.

    #837 was merged today, so nothing blocks this any more.

    — orchestrator

  4. arnodelorme commented on Nov 29, 2026

    @arnodelorme
    CollaboratorAuthor

    Arno confirmed on November 29, 2026 that the AI publishes to PyPI itself. His words: "I mean, you, the AI, should have access. There is code, for example, in EEGPrep to push to PyPi. Check and create project/release."

    • The credential is the Infisical profile pypi (variable TWINE_PASSWORD), not ~/.pypirc, which holds no password on this Mac. Run the upload through the runner of the skill infisical-secrets: python3 ~/.agents/skills/infisical-secrets/scripts/runner.py run-profile --cwd <repo> pypi -- <upload command>. Never print the token.
    • Checked today: the token is account-wide (no project restriction), so it can create the new PyPI project eegprep-sample-data on its first upload.
    • EEGPrep's own upload code is scripts/release_packages.py --publish (it expects UV_PUBLISH_TOKEN or UV_PUBLISH_PASSWORD); for the new package, uv build then uvx twine upload dist/* with the profile's TWINE_PASSWORD and TWINE_USERNAME=__token__ is enough. Run twine check --strict first.
    • The rest of the plan in the comment above stands: the package, the full extra, the console lookup, one pull request on develop from agent/issue-866. Report the PyPI project link here once it is live.

    — orchestrator

  5. removed
    needs-arno
    on Nov 29, 2026
  6. arnodelorme commented on Nov 29, 2026

    @arnodelorme
    CollaboratorAuthor

    🤖 # Research

    run_console loads cont/epoch only from SAMPLE_DATA_DIR, the checkout's sample_data/, and only when src/eegprep sits beside it. An installed package never has that folder, and the full extra lists only the four library extras.

    Relevant code

    Proposed Fix

    New project packages/eegprep-sample-data/ (setuptools, no dependencies, version 1.0.0) holding byte-identical copies of eeglab_data.set/.fdt and eeglab_data_epochs_ica.set/.fdt (same git blobs, so the repository does not grow) and eegprep_sample_data.path(). Build, twine check --strict, upload with the Infisical pypi profile. Then "eegprep-sample-data>=1.0.0" goes in full (and in all, which already lists every part of full), uv.lock is refreshed, and run_console tries the checkout first, then eegprep_sample_data.path(), then logs the current message plus pip install "eegprep[full]". Test: build both wheels, install them with uv into a fresh environment, and start the console in cont and epoch.

  7. arnodelorme commented on Nov 29, 2026

    @arnodelorme
    CollaboratorAuthor

    🤖 Published and ready for review.

    • PyPI: https://pypi.org/project/eegprep-sample-data/1.0.0/ (wheel 7.25 MB and sdist, twine check --strict passed, uploaded with the Infisical pypi profile). The SHA-256 hashes on PyPI match the local build.
    • Pull request: [GUI] Add sample recordings to eegprep[full] #883 from agent/issue-866. Every CI check passed: tests on Ubuntu with Python 3.12 and 3.13, macOS, and Windows, plus base install, Pyodide, docs, ruff and ty, and pre-commit. The automated review found nothing blocking.
    • Test: test_installed_wheels_open_both_sample_recordings_from_eegprep_sample_data builds both wheels, installs them in a fresh uv venv (no source checkout), and starts the console in cont (32 × 30504) and epoch (32 × 384 × 80), with both loaded from the package. It also fails if the package's copies differ from sample_data/.
    • Choices to check: all gets the package too, since it already listed every part of full. The message for missing recordings now names pip install "eegprep[full]" and pip install eegprep-sample-data before the clone instructions.
    • Repository: .gitignore ignores *.set and *.fdt, so two negation lines let the package's four files be tracked. They are the same git blobs as in sample_data/, so the repository does not grow. uv.lock gains only the new package (13 lines).
  8. arnodelorme commented on Nov 29, 2026

    @arnodelorme
    CollaboratorAuthor

    Done: Published eegprep-sample-data 1.0.0 on PyPI (https://pypi.org/project/eegprep-sample-data/1.0.0/) and opened pull request 883, which adds it to the full extra so eegprep-console cont and epoch open the sample recordings from an installed EEGPrep. All CI checks pass, waiting for review.

    Pull request: #883

    — agent, reported with orch done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions