Commit d45b91d8 authored by Michiel Cottaar's avatar Michiel Cottaar
Browse files

TEST: skip test_computation in CI (too slow)

parent bbf4e838
Pipeline #2298 passed with stage
in 2 minutes and 43 seconds
......@@ -8,10 +8,10 @@ before_script:
test36:
image: python:3.6
script:
- pytest gyral_structure/test
- pytest gyral_structure/test -m "not slowtest"
test35:
image: python:3.5
script:
- pytest gyral_structure/test
- pytest gyral_structure/test -m "not slowtest"
import scipy as sp
from gyral_structure import basis, request, algorithm
import tempfile
import pytest
def requests(ndim, npos=20, noder=False):
......@@ -85,6 +86,7 @@ def check_computation(basis_func, npos=13, noder=False, nodiv=True):
check_divergence_free(basis_func, npos)
@pytest.mark.slowtest
def test_computation():
sp.random.seed(12345)
for ndim in (2, 3):
......
......@@ -2,6 +2,7 @@ import gyral_structure.algorithm
import scipy as sp
from gyral_structure import cost, request, basis
import tempfile
import pytest
def check_costfunc(costfunction, hessp_zero=False):
......
import scipy as sp
import sympy
from gyral_structure.basis import radial
from gyral_structure.basis.radial import sparse, ITE
from gyral_structure.basis.radial import sparse
from scipy import spatial
import itertools
......@@ -72,7 +72,6 @@ class CompactRBFOld(object):
(35 * self.rad_symb ** 2 + 18 * self.rad_symb + 3 if smoothness == 2 else
(32 * self.rad_symb ** 3 + 25 * self.rad_symb ** 2 + 8 * self.rad_symb + 1))))
self.raw_func = (1 - self.rad_symb) ** ((smoothness + 1) * 2) * additional
self.function = ITE(self.rad_symb >= 1, 0, self.raw_func)
self.matrix_valued = self._matrix_valued(as_sympy=False)
self.smoothness = smoothness
......
Supports Markdown
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