Repository navigation
Raise the dependency floors the test suite fails below (pydantic 2.11.4, skorch 1.3.1, mne_bids 0.19, zarr 3.1) - #1531
Conversation
…, skorch 1.3.1, mne_bids 0.19, zarr 3.1) Measured on Python 3.11 with torch 2.6 and every declared floor, the other dependencies at their newest release (bd2-deep audit): pydantic < 2.11 rejects create_model(__config__=..., __base__=...) used by the model configs; skorch 1.3.0 leaves cropped grid-search pipelines unfitted with scikit-learn 1.9; mne_bids 0.18 misses inherited sidecars in the notebook viewer; zarr < 3.1 has no Group.create_array(data=...).
…ase__ (finer bisection)
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported for the dependency-minimum and release-note updates.
No open issues 🎉
What changed in this PR
Aligns Braindecode’s declared minimum dependencies with the passing versions identified by the 2.0 release audit. No application code changes are included.
Changes:
- Raises core minimums to
pydantic>=2.11.4,skorch>=1.3.1, andmne_bids>=0.19. - Raises the optional
hubminimum tozarr>=3.1. - Documents the new requirements and the failures motivating them.
| File | Description |
|---|---|
pyproject.toml |
Raises four dependency minimums to the audited passing versions. |
docs/whats_new.rst |
Adds a Requirements entry explaining the dependency increases. |
Review effort: Balanced
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1531 +/- ##
=======================================
Coverage 91.34% 91.34%
=======================================
Files 170 170
Lines 22105 22105
=======================================
Hits 20192 20192
Misses 1913 1913 🚀 New features to boost your workflow:
|
|
Minimum-versions suite, run in a Voyager Job against the installed wheel of all the audit fixes combined (#1524 to #1531, branch bd2deep-tmp/all-fixes 6d9637f9). Environment: Python 3.11, torch/torchaudio 2.6.0, mne 1.11.0, mne_bids 0.19.0, skorch 1.3.1, pydantic 2.11.4, zarr 3.1.0, wfdb 4.3.1; everything else at the newest release. Result: 7983 passed, 1 failed, 386 skipped, 2 xfailed. The 1 failure is a harness artefact: The same combined branch on Python 3.14 / torch 2.15 with the latest dependencies gives 8166 passed, with the same single artefact. |
The 2.0 release audit (
bd2-deep) ran the test suite against the installed wheel on Python 3.11, with torch/torchaudio 2.6.0 and every floor declared inpyproject.toml; every other dependency was at its newest release. There were 96 failures. A bisection Job then raised one floor at a time until its tests passed:pydantic>=2.0braindecode.models.configdoes not import:create_modelrejects__config__together with__base__(20 tests intest_base.py/test_config*.py)zarr([hub])>=3.0Group.create_array()has nodata=(60 tests in the hub/zarr tests)skorch>=1.3.0NotFittedError, 4 tests)mne_bids>=0.18events.tsv(1 test)This PR raises the four floors and adds a whats_new entry under Requirements. No code changes.
Verified in Voyager Jobs:
pre-commit run --filesexits 0, andtest_dependencies.pypasses. The full suite on Python 3.11 / torch 2.6 with the new floors (pydantic==2.11.4,zarr==3.1.0,skorch==1.3.1,mne_bids==0.19.0,mne==1.11.0,wfdb==4.3.1) against the installed wheel is posted below; it runs on top of the other open audit fixes (#1524 to #1530), because #1527 is needed for the torch 2.6 lfilter test.