-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Made numba fail gracefully if not present
- Loading branch information
1 parent
fd9bc07
commit fd79116
Showing
1 changed file
with
9 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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" | ||
''' | ||
|
@@ -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() | ||
|