Repository navigation
Test that lists every private copy of a standard block in models; new copies fail CI - #1455
Merged
bruAristimunha merged 1 commit intoOct 18, 2026
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1455 +/- ##
=======================================
Coverage 91.04% 91.04%
=======================================
Files 165 165
Lines 21653 21653
=======================================
Hits 19714 19714
Misses 1939 1939 🚀 New features to boost your workflow:
|
This was referenced Oct 17, 2026
Merged
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #1442; first step of the consolidation plan (stop the growth before deduplicating).
braindecode/modelshas 134 private classes whose names say they re-implement a standard block (attention, transformer block/layer, MLP/feed-forward, positional or rotary encoding, norm, patch embedding, residual wrapper).test_private_blocks.pylists them as they are today. A model PR that adds one more fails with a message pointing tobraindecode.modules/braindecode.functional, or adds the class to the list with the reason in its docstring (typically a parameter layout that released weights depend on). Removing a copy requires removing its line, so the list stays exact and shrinks with the follow-up PRs.The new-model checklist gets one line asking for the shared blocks.
No library code changes.