Skip to content

Commit

Permalink
Temporary fix for Tensorflow NUMEXPR_MAX_THREADS
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfG committed Feb 10, 2021
1 parent be028ec commit 9d91e35
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ms2rescore/retention_time.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ def __init__(
self.calibration_set_size = calibration_set_size
self.num_cpu = num_cpu

# Until fixed upstream: https://github.com/compomics/DeepLC/issues/19
if "NUMEXPR_MAX_THREADS" not in os.environ:
os.environ['NUMEXPR_MAX_THREADS'] = str(self.num_cpu)

from deeplc import DeepLC

self.deeplc_predictor = DeepLC(
Expand Down

0 comments on commit 9d91e35

Please sign in to comment.