18 lines
421 B
Python
18 lines
421 B
Python
# -*- coding: utf-8 -*-
|
|
from warnings import warn
|
|
|
|
from .. import getConfigOption
|
|
|
|
def getNumbaFunctions():
|
|
if getConfigOption("useNumba"):
|
|
try:
|
|
import numba # noqa
|
|
except ImportError:
|
|
warn("numba library could not be loaded, but 'useNumba' is set.")
|
|
return None
|
|
|
|
from .. import functions_numba
|
|
return functions_numba
|
|
else:
|
|
return None
|