Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions doc/changes/dev/14134.other.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix ten docstrings in private helpers that named a parameter the function does not take, and one that documented ``max_iter=1000`` for :func:`mne.decoding.csp._ajd_pham` while the signature has ``15``, by `Anton Karpov`_.
2 changes: 1 addition & 1 deletion mne/_fiff/matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def write_named_matrix(fid, kind, mat):
The opened file descriptor.
kind : int
The kind of the matrix.
matkind : int
mat : int
The type of matrix.
"""
# let's save ourselves from disaster
Expand Down
2 changes: 1 addition & 1 deletion mne/decoding/csp.py
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ def _ajd_pham(X, eps=1e-6, max_iter=15):
A set of covariance matrices to diagonalize.
eps : float, default 1e-6
The tolerance for stopping criterion.
max_iter : int, default 1000
max_iter : int, default 15
The maximum number of iteration to reach convergence.

Returns
Expand Down
8 changes: 4 additions & 4 deletions mne/forward/_compute_forward.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ def _lin_field_coeff(surf, mult, rmags, cosmags, ws, bins, n_jobs):
mult : float
Multiplier for particular BEM surface (Iso Skull Approach discussed in
Mosher et al., 1999 and Hämäläinen and Sarvas, 1989 Section III?)
rmag : ndarray, shape (n_integration_pts, 3)
rmags : ndarray, shape (n_integration_pts, 3)
3D positions of MEG coil integration points (from coil['rmag'])
cosmag : ndarray, shape (n_integration_pts, 3)
cosmags : ndarray, shape (n_integration_pts, 3)
Direction of the MEG coil integration points (from coil['cosmag'])
ws : ndarray, shape (n_integration_pts,)
Weights for MEG coil integration points
Expand Down Expand Up @@ -116,9 +116,9 @@ def _do_lin_field_coeff(bem_rr, tris, tn, ta, rmags, cosmags, ws, bins):
Triangle unit normal vectors
ta : ndarray, shape (n_BEM_vertices,)
Triangle areas
rmag : ndarray, shape (n_sensor_pts, 3)
rmags : ndarray, shape (n_sensor_pts, 3)
3D positions of MEG coil integration points (from coil['rmag'])
cosmag : ndarray, shape (n_sensor_pts, 3)
cosmags : ndarray, shape (n_sensor_pts, 3)
Direction of the MEG coil integration points (from coil['cosmag'])
ws : ndarray, shape (n_sensor_pts,)
Weights for MEG coil integration points
Expand Down
2 changes: 1 addition & 1 deletion mne/preprocessing/maxwell.py
Original file line number Diff line number Diff line change
Expand Up @@ -1702,7 +1702,7 @@ def _sss_basis(exp, all_coils):
ext_order : int
Order of the external multipolar moment space

coils : list
all_coils : list
List of MEG coils. Each should contain coil information dict specifying
position, normals, weights, number of integration points and channel
type. All coil geometry must be in the same coordinate frame
Expand Down
2 changes: 1 addition & 1 deletion mne/transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,7 @@ def _cart_to_sph(cart):

Parameters
----------
cart_pts : ndarray, shape (n_points, 3)
cart : ndarray, shape (n_points, 3)
Array containing points in Cartesian coordinates (x, y, z)

Returns
Expand Down
4 changes: 2 additions & 2 deletions mne/viz/backends/_abstract.py
Original file line number Diff line number Diff line change
Expand Up @@ -555,10 +555,10 @@ def text2d(

Parameters
----------
x : float
x_window : float
The X component to use as position of the text in the
window coordinates system (window_width, window_height).
y : float
y_window : float
The Y component to use as position of the text in the
window coordinates system (window_width, window_height).
text : str
Expand Down
Loading