From 853886c310eb63148d99452369bc07a5dca6e641 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 29 May 2024 13:33:55 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/spikeinterface/preprocessing/whiten.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/spikeinterface/preprocessing/whiten.py b/src/spikeinterface/preprocessing/whiten.py index 2d56403e65..be31788763 100644 --- a/src/spikeinterface/preprocessing/whiten.py +++ b/src/spikeinterface/preprocessing/whiten.py @@ -211,6 +211,7 @@ def compute_whitening_matrix( n_jobs = job_kwargs["n_jobs"] if isinstance(n_jobs, float) and 0 < n_jobs <= 1: import os + n_jobs = int(n_jobs * os.cpu_count()) regularize_kwargs["n_jobs"] = n_jobs estimator = sklearn.covariance.GraphicalLassoCV(**regularize_kwargs)