Skip to content

Commit 29392b2

Browse files
committed
2 parents 16dfe1a + dbe4765 commit 29392b2

File tree

5 files changed

+14
-16
lines changed

5 files changed

+14
-16
lines changed

interpolation/compat.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
1-
21
from distutils.version import LooseVersion
32

4-
53
from numba import __version__
64

75
if LooseVersion(__version__)>='0.43':
86
overload_options = {'strict': False}
97
else:
108
overload_options = {}
119

12-
from numba.core.types import Tuple, UniTuple
13-
# if LooseVersion(__version__)>='0.49':
14-
# from numba.core.types import Tuple, UniTuple
15-
# else:
16-
# from numba.core.types.containers import Tuple, UniTuple
10+
if LooseVersion(__version__)>='0.49':
11+
from numba.core.types import Array, Float, Integer
12+
from numba.core.types import Tuple, UniTuple
13+
else:
14+
from numba.types import Array, Float, Integer
15+
from numba.types.containers import Tuple, UniTuple

interpolation/multilinear/fungen.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@
55
import ast
66

77
from numba.extending import overload
8-
from numba.core.types import Array
8+
from ..compat import Array, Tuple, UniTuple
99
from ..compat import overload_options
10-
from ..compat import Tuple, UniTuple
1110

1211

1312
# from math import max, min

interpolation/multilinear/mlinterp.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
from numba import njit
2424
from typing import Tuple
2525

26-
from ..compat import UniTuple, Tuple
27-
from numba.core.types import Float, Integer, Array
26+
from ..compat import UniTuple, Tuple, Float, Integer, Array
27+
2828
Scalar = (Float, Integer)
2929

3030
import numpy as np

interpolation/splines/eval_splines.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
import numpy as np
7979
from numba import njit
8080
from numba.extending import overload
81-
from numba.core.types import Array
81+
from ..compat import Array
8282

8383
def _eval_linear():
8484
pass

pyproject.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ license = "BSD-2-Clause"
1414

1515
[tool.poetry.dependencies]
1616
python = "^3.6"
17-
numba = ">= 0.49"
18-
numpy = "^1.18.3"
19-
tempita = "^0.5.2"
20-
scipy = "^1.4.1"
17+
numba = ">=0.47"
18+
numpy = ">=1.18.1"
19+
tempita = ">=0.5.2"
20+
scipy = ">=1.4.1"
2121

2222
[tool.poetry.dev-dependencies]
2323
pytest = "^5.2"

0 commit comments

Comments
 (0)