Skip to content

Commit 2f2c2be

Browse files
authored
Merge pull request #51 from SwiftSeal/spawn
force to spawn
2 parents 81e0379 + 466f0b0 commit 2f2c2be

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ To use these with - for example - `singularity`, simply run:
3838
If you are having issues with `conda`, you can instead try installing directly from the repository:
3939

4040
```sh
41-
pip install https://github.com/SwiftSeal/resistify/archive/refs/tags/v1.1.4.tar.gz
41+
pip install https://github.com/SwiftSeal/resistify/archive/refs/tags/v1.1.5.tar.gz
4242
```
4343

4444
Note that `resistify` requires `hmmer` to be installed and available in your system's PATH, which will not be installed automatically when using `pip`.

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "resistify"
7-
version = "1.1.4"
7+
version = "1.1.5"
88
dependencies = [
99
"scikit-learn>=0.24.2",
1010
"numpy",

resistify/__version__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "1.1.4"
1+
__version__ = "1.1.5"

resistify/nlrexpress.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import pickle
55
import os
66
import tempfile
7-
from multiprocessing import cpu_count
7+
from multiprocessing import cpu_count, get_context
88
import concurrent.futures
99
from threadpoolctl import threadpool_limits
1010
import shutil
@@ -152,7 +152,7 @@ def nlrexpress(sequences, search_type, chunk_size, threads):
152152
progress_logger = ProgressLogger(len(batches))
153153
results = []
154154
with concurrent.futures.ProcessPoolExecutor(
155-
max_workers=-(-threads // 2)
155+
max_workers=-(-threads // 2), mp_context=get_context("spawn")
156156
) as executor:
157157
futures = [
158158
executor.submit(nlrexpress_subprocess, (batch, jackhmmer_db.name, models))

0 commit comments

Comments
 (0)