Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed May 29, 2024
1 parent 3b8eabc commit 853886c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/spikeinterface/preprocessing/whiten.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 853886c

Please sign in to comment.