Skip to content

Commit

Permalink
Remove limit threads feature calc
Browse files Browse the repository at this point in the history
  • Loading branch information
RobbinBouwmeester committed Apr 14, 2024
1 parent 83a132d commit 6b27f5c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
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.35] - 2024-04-14

- Remove limit threads feature calc

# [2.2.34] - 2024-04-13

- Fix issue transfer learning single model mode
Expand Down
8 changes: 0 additions & 8 deletions deeplc/deeplc.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,14 +241,6 @@ def __init__(
self.split_cal = split_cal
self.n_jobs = n_jobs

max_threads = multiprocessing.cpu_count()
# Hard limit the number of threads if not provided as
# most times it will run into a memory issue otherwise
if not self.n_jobs:
self.n_jobs = int(max_threads / 5.0) + 1
elif self.n_jobs > max_threads:
self.n_jobs = int(max_threads / 5.0) + 1

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.34"
version = "2.2.35"
description = "DeepLC: Retention time prediction for (modified) peptides using Deep Learning."
readme = "README.md"
license = { file = "LICENSE" }
Expand Down

0 comments on commit 6b27f5c

Please sign in to comment.