Skip to content

Commit 335c83c

Browse files
committed
moved code to fix readthedocs
1 parent e54b54e commit 335c83c

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

metapredict/__init__.py

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,6 @@
1515
import os
1616
from importlib.metadata import version, PackageNotFoundError
1717

18-
# import current version
19-
from ._version import __version__
20-
21-
# To crash on LIBOMP error set this to False
22-
IGNORE_LIBOMP_ERROR = True
23-
24-
# ------------------------------------------------------------
25-
#
26-
# Handle omplib error
27-
if IGNORE_LIBOMP_ERROR:
28-
if sys.platform == 'darwin':
29-
os.environ['KMP_DUPLICATE_LIB_OK']='True'
30-
3118
# ------------------------------------------------------------
3219
# READTHEDOCS thanks to Alex Holehouse!!!!
3320

@@ -40,6 +27,18 @@
4027

4128
# ------------------------------------------------------------
4229

30+
31+
# To crash on LIBOMP error set this to False
32+
IGNORE_LIBOMP_ERROR = True
33+
34+
# ------------------------------------------------------------
35+
#
36+
# Handle omplib error
37+
if IGNORE_LIBOMP_ERROR:
38+
if sys.platform == 'darwin':
39+
os.environ['KMP_DUPLICATE_LIB_OK']='True'
40+
41+
4342
# Standardized function to check performance
4443
def print_performance(seq_len=500, num_seqs=2000, variable_length=False,
4544
version=DEFAULT_NETWORK, disable_batch=False,

0 commit comments

Comments
 (0)