Skip to content

Commit b3a378d

Browse files
committed
more docstring adventures
1 parent 7951a43 commit b3a378d

3 files changed

Lines changed: 7 additions & 4 deletions

File tree

mne/decoding/csp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ class CSP(_GEDTransformer):
112112
113113
See Also
114114
--------
115-
mne.preprocessing.Xdawn, SPoC
115+
XdawnTransformer, SPoC, SSD
116116
117117
References
118118
----------

mne/decoding/xdawn.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,7 @@ class XdawnTransformer(_GEDTransformer):
6464
Defaults to None.
6565
6666
.. versionadded:: 1.10
67-
%(rank)s
68-
Defaults to "full".
67+
%(rank_full)s
6968
7069
.. versionadded:: 1.10
7170
@@ -77,6 +76,10 @@ class XdawnTransformer(_GEDTransformer):
7776
The Xdawn components used to decompose the data for each event type.
7877
patterns_ : array, shape (n_channels, n_channels)
7978
The Xdawn patterns used to restore the signals for each event type.
79+
80+
See Also
81+
--------
82+
CSP, SPoC, SSD
8083
"""
8184

8285
def __init__(
@@ -89,7 +92,6 @@ def __init__(
8992
info=None,
9093
rank="full",
9194
):
92-
"""Init."""
9395
self.n_components = n_components
9496
self.signal_cov = signal_cov
9597
self.reg = reg

mne/utils/docs.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3695,6 +3695,7 @@ def _reflow_param_docstring(docstring, has_first_line=True, width=75):
36953695
docdict["rank"] = _rank_base
36963696
docdict["rank_info"] = _rank_base + "\n The default is ``'info'``."
36973697
docdict["rank_none"] = _rank_base + "\n The default is ``None``."
3698+
docdict["rank_full"] = _rank_base + "\n The default is ``'full'``."
36983699

36993700
docdict["raw_epochs"] = """
37003701
raw : Raw object

0 commit comments

Comments
 (0)