Commit 4e0be512ef3 by Ashwin Vishnu

Include scipy to tests, rebuild saved__backend__ and rsync

parent 2e2c0fba7d1
Pipeline #3638 passed with stage
in 9 minutes 24 seconds
......@@ -19,3 +19,10 @@ meld_cython:
meld_numba:
meld __numba__ saved__backend__/numba
saved__backend__/%: __%__ FORCE
rsync -aP $< $@
rsync: saved__backend__/pythran saved__backend__/python saved__backend__/cython saved__backend__/numba
FORCE:
......@@ -6,3 +6,5 @@ cimport numpy as np
cpdef test_np_fft(np.ndarray[np.float_t, ndim=1] u)
cpdef test_np_linalg_random(np.ndarray[np.float_t, ndim=2] u)
cpdef test_sp_special(cython.int v, cython.float x)
......@@ -6,6 +6,7 @@ except ImportError:
from numpy.fft import rfft
from numpy.random import randn
from numpy.linalg import matrix_power
from scipy.special import jv
def test_np_fft(u):
......@@ -21,4 +22,8 @@ def test_np_linalg_random(u):
return u4
def test_sp_special(v, x):
return jv(v, x)
__transonic__ = ("0.4.2",)
......@@ -2,6 +2,7 @@
from numpy.fft import rfft
from numpy.random import randn
from numpy.linalg import matrix_power
from scipy.special import jv
# __protected__ @njit
......@@ -22,4 +23,11 @@ def test_np_linalg_random(u):
return u4
# __protected__ @njit
def test_sp_special(v, x):
return jv(v, x)
__transonic__ = ("0.4.2",)
from numpy.fft import rfft
from numpy.random import randn
from numpy.linalg import matrix_power
from scipy.special import jv
def test_np_fft(u):
......@@ -16,4 +17,8 @@ def test_np_linalg_random(u):
return u4
def test_sp_special(v, x):
return jv(v, x)
__transonic__ = ("0.4.2",)
from numpy.fft import rfft
from numpy.random import randn
from numpy.linalg import matrix_power
from scipy.special import jv
def test_np_fft(u):
......@@ -16,4 +17,8 @@ def test_np_linalg_random(u):
return u4
def test_sp_special(v, x):
return jv(v, x)
__transonic__ = ("0.4.2",)
......@@ -2,4 +2,6 @@ export test_np_fft(float64[:])
export test_np_linalg_random(float64[:, :])
export test_sp_special(int, float64)
export __transonic__
......@@ -2,8 +2,7 @@ from numpy.fft import rfft
from numpy.linalg import matrix_power
from numpy.random import randn
# TODO: requires test dependency scipy
# from scipy.special import jv
from scipy.special import jv
from transonic import boost
......@@ -23,6 +22,6 @@ def test_np_linalg_random(u: "float[:,:]"):
return u4
# @boost
# def test_sp_special(v:int, x:float):
# return jv(v, x)
@boost
def test_sp_special(v: int, x: float):
return jv(v, x)
......@@ -33,6 +33,7 @@ test =
pythran
cython
black
scipy
%(mpi)s
doc =
......@@ -88,4 +89,4 @@ directory = .coverage
output = .coverage/coverage.xml
[tool:pytest]
addopts = --doctest-modules
\ No newline at end of file
addopts = --doctest-modules
......@@ -25,6 +25,7 @@ deps =
numpy
mpi4py
black
scipy
numba
pythran: git+https://github.com/serge-sans-paille/pythran#egg=pythran
cython: cython
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment