Skip to content

Commit

Permalink
Merge pull request #310 from PhilippSteen/patch-1
Browse files Browse the repository at this point in the history
Update gausslq.py
  • Loading branch information
rafalkowalewski1 authored Feb 1, 2023
2 parents 2da4deb + de307c4 commit 92317e2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion picasso/gausslq.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,11 @@ def fit_spots(spots):


def fit_spots_parallel(spots, asynch=False):
n_workers = max(1, int(0.75 * _multiprocessing.cpu_count()))
n_cores = _multiprocessing.cpu_count()
if n_cores >= 80:
n_workers = 60
else:
n_workers = max(1, int(0.75 * n_cores))
n_spots = len(spots)
n_tasks = 100 * n_workers
spots_per_task = [
Expand Down

0 comments on commit 92317e2

Please sign in to comment.