Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Michiel Cottaar
gyral_structure
Commits
d45b91d8
Commit
d45b91d8
authored
Jul 31, 2018
by
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
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
d45b91d8
...
...
@@ -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"
gyral_structure/test/test_computation.py
View file @
d45b91d8
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
):
...
...
gyral_structure/test/test_cost.py
View file @
d45b91d8
...
...
@@ -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
):
...
...
gyral_structure/test/test_radial_basis.py
View file @
d45b91d8
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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment