Skip to content

Commit 3130d24

Browse files
pre-commit-ci[bot]Famous077
authored andcommitted
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent e7340a6 commit 3130d24

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

mne/minimum_norm/resolution_matrix.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ def _get_psf_ctf(
155155
# summarise PSFs/CTFs across vertices if requested
156156
pca_var = None # variances computed only if return_pca_vars=True
157157
if mode is not None:
158-
#mapping public mode names to internal names
158+
# mapping public mode names to internal names
159159
_mode_map = {
160160
"max": "maxnorm",
161161
"svd": "pca",
@@ -201,9 +201,7 @@ def _check_get_psf_ctf_params(mode, n_comp, return_pca_vars):
201201
"""Check input parameters of _get_psf_ctf() for consistency."""
202202
valid_modes = (None, "mean", "max", "svd")
203203
if mode not in valid_modes:
204-
raise ValueError(
205-
f"mode must be one of {valid_modes}, got {mode!r} instead."
206-
)
204+
raise ValueError(f"mode must be one of {valid_modes}, got {mode!r} instead.")
207205
if mode in [None, "mean"] and n_comp > 1:
208206
msg = f"n_comp must be 1 for mode={mode}."
209207
raise ValueError(msg)

0 commit comments

Comments
 (0)