Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ift
NIFTy
Commits
f82b084e
Commit
f82b084e
authored
Mar 22, 2020
by
Martin Reinecke
Browse files
make sure that the RNG is in a reproducible state for every single test
parent
9020c956
Pipeline
#71181
passed with stages
in 16 minutes and 58 seconds
Changes
32
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
test/test_operators/test_representation.py
View file @
f82b084e
...
...
@@ -20,7 +20,7 @@ import pytest
import
nifty6
as
ift
from
..common
import
list2fixture
from
..common
import
list2fixture
,
setup_function
,
teardown_function
_h_RG_spaces
=
[
ift
.
RGSpace
(
7
,
distances
=
0.2
,
harmonic
=
True
),
...
...
test/test_operators/test_simplification.py
View file @
f82b084e
...
...
@@ -18,6 +18,7 @@
from
numpy.testing
import
assert_allclose
,
assert_equal
import
nifty6
as
ift
from
..common
import
setup_function
,
teardown_function
def
test_simplification
():
...
...
test/test_operators/test_smoothing_operator.py
View file @
f82b084e
...
...
@@ -21,7 +21,7 @@ from numpy.testing import assert_allclose
import
nifty6
as
ift
from
..common
import
list2fixture
from
..common
import
list2fixture
,
setup_function
,
teardown_function
def
_get_rtol
(
tp
):
...
...
test/test_operators/test_value_inserter.py
View file @
f82b084e
...
...
@@ -20,6 +20,7 @@ import pytest
from
numpy.testing
import
assert_
import
nifty6
as
ift
from
..common
import
setup_function
,
teardown_function
@
pytest
.
mark
.
parametrize
(
'sp'
,
[
...
...
test/test_plot.py
View file @
f82b084e
...
...
@@ -18,6 +18,7 @@
import
numpy
as
np
import
nifty6
as
ift
from
.common
import
setup_function
,
teardown_function
def
test_plots
():
...
...
test/test_spaces/test_gl_space.py
View file @
f82b084e
...
...
@@ -23,6 +23,7 @@ from numpy.testing import (assert_, assert_almost_equal, assert_equal,
assert_raises
)
from
nifty6
import
GLSpace
from
..common
import
setup_function
,
teardown_function
pmp
=
pytest
.
mark
.
parametrize
...
...
test/test_spaces/test_hp_space.py
View file @
f82b084e
...
...
@@ -21,6 +21,7 @@ from numpy.testing import (assert_, assert_almost_equal, assert_equal,
assert_raises
)
from
nifty6
import
HPSpace
from
..common
import
setup_function
,
teardown_function
pmp
=
pytest
.
mark
.
parametrize
# [nside, expected]
...
...
test/test_spaces/test_interface.py
View file @
f82b084e
...
...
@@ -21,6 +21,7 @@ import pytest
from
numpy.testing
import
assert_
import
nifty6
as
ift
from
..common
import
setup_function
,
teardown_function
pmp
=
pytest
.
mark
.
parametrize
...
...
test/test_spaces/test_lm_space.py
View file @
f82b084e
...
...
@@ -20,6 +20,7 @@ import pytest
from
numpy.testing
import
assert_
,
assert_allclose
,
assert_equal
,
assert_raises
import
nifty6
as
ift
from
..common
import
setup_function
,
teardown_function
pmp
=
pytest
.
mark
.
parametrize
# [lmax, expected]
...
...
test/test_spaces/test_power_space.py
View file @
f82b084e
...
...
@@ -22,6 +22,7 @@ import pytest
from
numpy.testing
import
assert_
,
assert_allclose
,
assert_equal
,
assert_raises
import
nifty6
as
ift
from
..common
import
setup_function
,
teardown_function
pmp
=
pytest
.
mark
.
parametrize
...
...
test/test_spaces/test_rg_space.py
View file @
f82b084e
...
...
@@ -20,6 +20,7 @@ import pytest
from
numpy.testing
import
assert_
,
assert_allclose
,
assert_equal
import
nifty6
as
ift
from
..common
import
setup_function
,
teardown_function
pmp
=
pytest
.
mark
.
parametrize
# [shape, distances, harmonic, expected]
...
...
test/test_sugar.py
View file @
f82b084e
...
...
@@ -19,6 +19,7 @@ import numpy as np
from
numpy.testing
import
assert_equal
import
nifty6
as
ift
from
.common
import
setup_function
,
teardown_function
def
test_get_signal_variance
():
...
...
Prev
1
2
Next
Write
Preview
Markdown
is supported
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