Skip to content

Commit

Permalink
docs: fix build taking too long
Browse files Browse the repository at this point in the history
  • Loading branch information
cbouysset committed Mar 1, 2024
1 parent 5c9ebc4 commit 9526b2e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

Maintenance update:

### Added

- `PROLIF_N_JOBS` environment variable to control multiprocessing during the
documentation build.

### Changed

- Updated CI pipelines to test on Python 3.8, 3.10 and 3.12
- Updated CI pipelines to test on Python 3.8, 3.10 and 3.12.

### Fixed

Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
]
nb_execution_allow_errors = False
nb_execution_raise_on_error = True
nb_execution_timeout = 180
nb_execution_timeout = 240

mathjax_path = "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS-MML_HTMLorMML"
autosectionlabel_prefix_document = True
Expand Down
4 changes: 4 additions & 0 deletions prolif/fingerprint.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
fp = prolif.Fingerprint.from_pickle("fingerprint.pkl")
"""

import os
import warnings
from collections.abc import Sized
from functools import wraps
Expand Down Expand Up @@ -462,6 +464,8 @@ def run(
raise ValueError("converter_kwargs must be a list of 2 dicts")

converter_kwargs = converter_kwargs or ({}, {})
if n_jobs is None:
n_jobs = os.environ.get("PROLIF_N_JOBS", n_jobs)
if residues == "all":
residues = list(Molecule.from_mda(prot, **converter_kwargs[1]).residues)
if n_jobs != 1:
Expand Down

0 comments on commit 9526b2e

Please sign in to comment.