Skip to content

Commit

Permalink
Set max num threads
Browse files Browse the repository at this point in the history
  • Loading branch information
RobbinBouwmeester committed Apr 14, 2024
1 parent 6b27f5c commit 8a503b8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to
[Semantic Versioning](https://semver.org/spec/v2.0.0.html).

# [2.2.36] - 2024-04-14

- Set max threads

# [2.2.35] - 2024-04-14

- Remove limit threads feature calc
Expand Down
4 changes: 4 additions & 0 deletions deeplc/deeplc.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,10 @@ def __init__(
self.split_cal = split_cal
self.n_jobs = n_jobs

if self.n_jobs == None:
max_threads = multiprocessing.cpu_count()
self.n_jobs = max_threads

self.use_library = use_library
self.write_library = write_library

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "deeplc"
version = "2.2.35"
version = "2.2.36"
description = "DeepLC: Retention time prediction for (modified) peptides using Deep Learning."
readme = "README.md"
license = { file = "LICENSE" }
Expand Down

0 comments on commit 8a503b8

Please sign in to comment.