Skip to content

DOC fix split MaxNormLinear reference URLs and moved SAELens links - #1560

Merged
bruAristimunha merged 1 commit into
braindecode:masterfrom
markksantos:doc/fix-split-and-moved-links
Nov 10, 2026
Merged

bruAristimunha merged 1 commit into
braindecode:masterfrom
markksantos:doc/fix-split-and-moved-links

Conversation

@markksantos

Copy link
Copy Markdown
Contributor

Summary

Fixes three links in the docs that point to the wrong place.

Changes

  • braindecode/modules/linear.py: references [2] and [3] of MaxNormLinear each split their URL across two docstring lines. Sphinx renders only the first half as the link, so on the API page the PyTorch forum reference goes to .../how-to-correctly-implement-in-place (404), and the TensorFlow reference goes to the tf.keras.constraints index instead of MaxNorm. Each URL is now on one line. Ruff's E501 skips lines that end in a URL, so the line-length check still passes.
  • examples/advanced_training/plot_sae_reve.py and plot_sae_activation_analysis.py: the SAELens docs moved from jbloomaus.github.io/SAELens/ (404) to decoderesearch.github.io/SAELens/ (200), along with the repo, which both examples already link at github.com/decoderesearch/SAELens.
  • docs/whats_new.rst: a Bug fixes entry, plus my name in the author list.

Testing

  • ruff check --select=E,W,F,I,D braindecode/modules/linear.py (ruff 0.14.9, as in pre-commit): the same 5 existing D1xx/D413 findings as on master, and nothing new. ruff check and ruff format --check pass on all three changed Python files.

  • codespell on the added lines: clean.

  • curl, run twice: the two full URLs and the new SAELens URL return 200, and the old SAELens URL and the truncated forum URL return 404.

  • No code or tests change, so the test suite wasn't run. Docs weren't built locally.

  • New or changed behavior is covered by relevant regression tests (or N/A with reason): N/A, links only

  • Style checks recorded, e.g. pre-commit run --files <changed files>: ruff and codespell above

  • docs/whats_new.rst updated (required by the changelog CI check)

Notes for reviewers

The same scan found one dead link I left alone, because the fix is yours to choose: braindecode/models/eeginception_erp.py:161 cites github.com/Grifcc/EEG/. That repo is gone and the Wayback Machine has no copy.

I drafted this with help from an AI assistant.

@codecov

codecov Bot commented Nov 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.53%. Comparing base (0f1cce2) to head (05044f2).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1560   +/-   ##
=======================================
  Coverage   91.53%   91.53%           
=======================================
  Files         171      171           
  Lines       22580    22580           
=======================================
  Hits        20669    20669           
  Misses       1911     1911           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@bruAristimunha
bruAristimunha merged commit 3118540 into braindecode:master Nov 10, 2026
10 checks passed
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.

2 participants