Skip to content

Commit f036b44

Browse files
authored
Fix cpu count detection (#527)
* Update __init__.py * Update CHANGELOG.md
1 parent ce5704b commit f036b44

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ and this project adheres to [Semantic Versioning][].
88
[keep a changelog]: https://keepachangelog.com/en/1.0.0/
99
[semantic versioning]: https://semver.org/spec/v2.0.0.html
1010

11+
## v0.17.2
12+
13+
### Fixes
14+
15+
- Detection of CPU count in `define_clonotype_clusters` was broken ([#527](https://github.com/scverse/scirpy/pull/527))
16+
1117
## v0.17.1
1218

1319
### Fixes

src/scirpy/util/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -598,6 +598,6 @@ def _get_usable_cpus(n_jobs: int = 0):
598598
return n_jobs
599599

600600
try:
601-
return os.sched_getaffinity(0)
601+
return len(os.sched_getaffinity(0))
602602
except AttributeError:
603603
return os.cpu_count()

0 commit comments

Comments
 (0)