Skip to content

DOC: Say adjacency=None is rarely right for sensor or source data in cluster tests - #14629

Open
PragnyaKhandelwal wants to merge 2 commits into
mne-tools:mainfrom
PragnyaKhandelwal:doc-cluster-adjacency
Open

PragnyaKhandelwal wants to merge 2 commits into
mne-tools:mainfrom
PragnyaKhandelwal:doc-cluster-adjacency

Conversation

@PragnyaKhandelwal

@PragnyaKhandelwal PragnyaKhandelwal commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Reference issue (if any)

Related to #14428.
Forum thread: https://mne.discourse.group/t/6800

What does this implement/fix?

  • The adjacency=None description in spatio_temporal_cluster_1samp_test (and the n-sample variant) says it assumes a regular lattice along the last
    dimension, which is accurate but doesn't warn that this is almost never meaningful when that dimension is sensors or source vertices — the array
    order doesn't reflect spatial neighbours.
  • Added one sentence to the spatio-temporal variants only, pointing to find_ch_adjacency / spatial_src_adjacency. The time-frequency variants
    are left unchanged because a lattice along time or frequency bins is correct.
  • The edit is in _if_none inside docdict in mne/utils/docs.py; the two docstrings in cluster_level.py were synced with check_static_docs.py.

Additional information

This branch has not been deployed

No deployments
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.

1 participant