From a578a7d10d8171b73e3ebce437c2980a89e11c31 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 10 Jan 2025 19:21:30 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- mne/preprocessing/pca_obs.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mne/preprocessing/pca_obs.py b/mne/preprocessing/pca_obs.py index 4f9a6c163ff..b3cfb6ec373 100755 --- a/mne/preprocessing/pca_obs.py +++ b/mne/preprocessing/pca_obs.py @@ -27,7 +27,7 @@ def apply_pca_obs( n_components: int = 4, n_jobs: int | None = None, copy: bool = True, - verbose : bool | str | int | None = None + verbose: bool | str | int | None = None, ) -> Raw | None: """ Apply the PCA-OBS algorithm to picks of a Raw object. @@ -45,7 +45,7 @@ def apply_pca_obs( n_components : int Number of PCA components to use to form the OBS (default 4). copy : bool - If False, modify the Raw instance in-place. + If False, modify the Raw instance in-place. If True, return a copied, modified Raw instance. Defaults to True. %(n_jobs)s %(verbose)s @@ -80,6 +80,7 @@ def apply_pca_obs( if copy: return raw + def _pca_obs( data: np.ndarray, qrs: np.ndarray,