From 6b27f5c98151f2ca86d1d355cdfaf97111e524c2 Mon Sep 17 00:00:00 2001 From: RobbinBouwmeester Date: Sun, 14 Apr 2024 11:05:30 +0200 Subject: [PATCH] Remove limit threads feature calc --- CHANGELOG.md | 4 ++++ deeplc/deeplc.py | 8 -------- pyproject.toml | 2 +- 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 08307ce..8955ac8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/deeplc/deeplc.py b/deeplc/deeplc.py index 4c74a04..8407691 100644 --- a/deeplc/deeplc.py +++ b/deeplc/deeplc.py @@ -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 diff --git a/pyproject.toml b/pyproject.toml index ddc54f8..6ce0677 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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" }