Repository navigation
[Extensions] Add authoring toolkit examples - #123
suraj-ranganath merged 2 commits into
Conversation
|
Claude finished @suraj-ranganath's task in 4m 2s —— View job Code review
I reviewed the full diff against
Hand-checked test arithmetic: threshold count = 5 for the sample data at 0.25, per-channel centering → mean 0, CSV channel-major round-trip, and integer gain formatting ( Note: I could not execute the suite in this sandboxed environment (test commands required interactive approval), so the verification above is static + API-level rather than a live run. BlockingNone. ImportantNone. Nits
Test gapsNone. The new tests exercise SDK validation + lazy-target loading for all six packages, history commands, GUI cancel and invalid-input paths, packaged resource availability, console/session history sync, the optional-dependency failure path, and EEGLAB parity notesNone blocking. The examples follow EEGPrep/EEGLAB conventions appropriately: channel-major Checked for correctness bugs, EEGLAB parity, data structure compatibility, changed-behavior tests, and CLAUDE.md/AGENTS.md compliance. |
|
🤖 Specification for the >500-line Phase 4 authoring toolkit change. Problem: Issue #116 needs concrete extension authoring assets that researchers can copy without understanding the full EEGPrep tree. The missing pieces were a full template package, focused examples for common extension types, a checklist, and tests that prove SDK registration plus package data/help/history patterns work. The core template contract is in examples/extensions/eegprep_ext_template/src/eegprep_ext_template/registration.py:20 and examples/extensions/eegprep_ext_template/src/eegprep_ext_template/pop_template_gain.py:17. Approach: Add examples/extensions/ as non-installed authoring material. The full eegprep_ext_template package demonstrates pyproject entry point registration, ExtensionSpec metadata, a pop_* function, menu metadata, packaged help, packaged sample data, and copied-package tests. Five smaller example packages cover signal transforms, file import/export, GUI dialogs, plot/browser callbacks, and optional dependencies. The checklist lives in examples/extensions/DEVELOPER_CHECKLIST.md and stays implementation-focused so Phase 4b can own broader docs. Key code: registration.py:20-59 declares the template ExtensionSpec with menu/action/pop/help/package-data resources. pop_template_gain.py:17-51 shows the pop_* mutation/history contract and GUI cancel behavior. pop_template_gain.py:54-79 shows the renderer-independent dialog spec and inputgui boundary. Tests: tests/test_extension_authoring_toolkit.py:51-62 verifies install-mode docs and entry-point declarations. tests/test_extension_authoring_toolkit.py:65-87 validates every example spec and lazy target. tests/test_extension_authoring_toolkit.py:90-120 verifies template help/package data, console LASTCOM/ALLCOM updates, and history replay. tests/test_extension_authoring_toolkit.py:123-185 covers --no-plugins, sample-data transforms, file I/O, GUI cancel/failure, browser callbacks, and optional dependency failure. |
b30931f to
e9c0693
Compare
Add a concrete extension template package, focused example extension packages, and a developer checklist for researcher-authored EEGPrep extensions. The included tests validate SDK registration, menu metadata, console/history behavior, help resources, package data, GUI cancel paths, optional dependencies, and no-plugins discovery behavior.
Closes #116