Skip to content

Commit

Permalink
Made numba fail gracefully if not present
Browse files Browse the repository at this point in the history
  • Loading branch information
SurgeArrester committed Aug 24, 2022
1 parent fd9bc07 commit fd79116
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions ElMD/ElMD.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
__copyright__ = "2019, Cameron Hargreaves"
__credits__ = ["https://github.com/Zapaan", "Loïc Séguin-C. <[email protected]>", "https://github.com/Bowserinator/"]
__license__ = "GPL"
__version__ = "0.5.1"
__version__ = "0.5.4"
__maintainer__ = "Cameron Hargreaves"
'''
Expand All @@ -32,17 +32,21 @@
import os
import pkg_resources

from functools import lru_cache
from site import getsitepackages
from collections import Counter
from copy import deepcopy

import numpy as np
from scipy.spatial.distance import squareform
from numba import njit
from functools import lru_cache

try:
from numba import njit
except ImportError:
def njit(*args, **kwargs):
def decorator(func):
return func
return decorator

#%%
def main():
import time
ts = time.time()
Expand Down

0 comments on commit fd79116

Please sign in to comment.