Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ift
NIFTy
Commits
91f480e9
Commit
91f480e9
authored
Nov 26, 2019
by
Martin Reinecke
Browse files
5->6
parent
14052dd3
Changes
60
Hide whitespace changes
Inline
Side-by-side
test/test_operators/test_convolution_operators.py
View file @
91f480e9
...
...
@@ -17,7 +17,7 @@
from
numpy.testing
import
assert_allclose
import
nifty
5
as
ift
import
nifty
6
as
ift
import
numpy
as
np
from
..common
import
list2fixture
...
...
test/test_operators/test_correlated_fields.py
View file @
91f480e9
...
...
@@ -19,7 +19,7 @@ import pytest
from
numpy.testing
import
assert_allclose
from
numpy.random
import
seed
import
nifty
5
as
ift
import
nifty
6
as
ift
@
pytest
.
mark
.
parametrize
(
'sspace'
,
[
...
...
test/test_operators/test_diagonal_operator.py
View file @
91f480e9
...
...
@@ -17,7 +17,7 @@
from
numpy.testing
import
assert_allclose
,
assert_equal
import
nifty
5
as
ift
import
nifty
6
as
ift
from
..common
import
list2fixture
...
...
test/test_operators/test_fft_operator.py
View file @
91f480e9
...
...
@@ -19,7 +19,7 @@ import numpy as np
import
pytest
from
numpy.testing
import
assert_
,
assert_allclose
import
nifty
5
as
ift
import
nifty
6
as
ift
from
..common
import
list2fixture
...
...
test/test_operators/test_harmonic_transform_operator.py
View file @
91f480e9
...
...
@@ -19,7 +19,7 @@ import numpy as np
import
pytest
from
numpy.testing
import
assert_allclose
import
nifty
5
as
ift
import
nifty
6
as
ift
from
..common
import
list2fixture
...
...
test/test_operators/test_jacobian.py
View file @
91f480e9
...
...
@@ -18,7 +18,7 @@
import
numpy
as
np
import
pytest
import
nifty
5
as
ift
import
nifty
6
as
ift
from
..common
import
list2fixture
...
...
test/test_operators/test_nft.py
View file @
91f480e9
...
...
@@ -19,7 +19,7 @@ import numpy as np
import
pytest
from
numpy.testing
import
assert_
import
nifty
5
as
ift
import
nifty
6
as
ift
np
.
random
.
seed
(
40
)
...
...
test/test_operators/test_regridding.py
View file @
91f480e9
...
...
@@ -17,7 +17,7 @@
from
numpy.testing
import
assert_allclose
import
nifty
5
as
ift
import
nifty
6
as
ift
from
..common
import
list2fixture
...
...
test/test_operators/test_representation.py
View file @
91f480e9
...
...
@@ -18,7 +18,7 @@
import
numpy
as
np
import
pytest
import
nifty
5
as
ift
import
nifty
6
as
ift
from
..common
import
list2fixture
...
...
test/test_operators/test_simplification.py
View file @
91f480e9
...
...
@@ -17,11 +17,11 @@
from
numpy.testing
import
assert_allclose
,
assert_equal
import
nifty
5
as
ift
import
nifty
6
as
ift
def
test_simplification
():
from
nifty
5
.operators.operator
import
_ConstantOperator
from
nifty
6
.operators.operator
import
_ConstantOperator
f1
=
ift
.
Field
.
full
(
ift
.
RGSpace
(
10
),
2.
)
op
=
ift
.
FFTOperator
(
f1
.
domain
)
_
,
op2
=
op
.
simplify_for_constant_input
(
f1
)
...
...
test/test_operators/test_smoothing_operator.py
View file @
91f480e9
...
...
@@ -19,7 +19,7 @@ import numpy as np
import
pytest
from
numpy.testing
import
assert_allclose
import
nifty
5
as
ift
import
nifty
6
as
ift
from
..common
import
list2fixture
...
...
test/test_operators/test_value_inserter.py
View file @
91f480e9
...
...
@@ -19,7 +19,7 @@ import numpy as np
import
pytest
from
numpy.testing
import
assert_
import
nifty
5
as
ift
import
nifty
6
as
ift
@
pytest
.
mark
.
parametrize
(
'sp'
,
[
...
...
test/test_plot.py
View file @
91f480e9
...
...
@@ -17,7 +17,7 @@
import
numpy
as
np
import
nifty
5
as
ift
import
nifty
6
as
ift
def
test_plots
():
...
...
test/test_spaces/test_gl_space.py
View file @
91f480e9
...
...
@@ -22,7 +22,7 @@ import pytest
from
numpy.testing
import
(
assert_
,
assert_almost_equal
,
assert_equal
,
assert_raises
)
from
nifty
5
import
GLSpace
from
nifty
6
import
GLSpace
pmp
=
pytest
.
mark
.
parametrize
...
...
test/test_spaces/test_hp_space.py
View file @
91f480e9
...
...
@@ -20,7 +20,7 @@ import pytest
from
numpy.testing
import
(
assert_
,
assert_almost_equal
,
assert_equal
,
assert_raises
)
from
nifty
5
import
HPSpace
from
nifty
6
import
HPSpace
pmp
=
pytest
.
mark
.
parametrize
# [nside, expected]
...
...
test/test_spaces/test_interface.py
View file @
91f480e9
...
...
@@ -20,7 +20,7 @@ from types import LambdaType
import
pytest
from
numpy.testing
import
assert_
import
nifty
5
as
ift
import
nifty
6
as
ift
pmp
=
pytest
.
mark
.
parametrize
...
...
test/test_spaces/test_lm_space.py
View file @
91f480e9
...
...
@@ -19,7 +19,7 @@ import numpy as np
import
pytest
from
numpy.testing
import
assert_
,
assert_allclose
,
assert_equal
,
assert_raises
import
nifty
5
as
ift
import
nifty
6
as
ift
pmp
=
pytest
.
mark
.
parametrize
# [lmax, expected]
...
...
test/test_spaces/test_power_space.py
View file @
91f480e9
...
...
@@ -21,7 +21,7 @@ import numpy as np
import
pytest
from
numpy.testing
import
assert_
,
assert_allclose
,
assert_equal
,
assert_raises
import
nifty
5
as
ift
import
nifty
6
as
ift
pmp
=
pytest
.
mark
.
parametrize
...
...
test/test_spaces/test_rg_space.py
View file @
91f480e9
...
...
@@ -19,7 +19,7 @@ import numpy as np
import
pytest
from
numpy.testing
import
assert_
,
assert_allclose
,
assert_equal
import
nifty
5
as
ift
import
nifty
6
as
ift
pmp
=
pytest
.
mark
.
parametrize
# [shape, distances, harmonic, expected]
...
...
test/test_sugar.py
View file @
91f480e9
...
...
@@ -18,7 +18,7 @@
import
numpy
as
np
from
numpy.testing
import
assert_equal
import
nifty
5
as
ift
import
nifty
6
as
ift
def
test_get_signal_variance
():
...
...
Prev
1
2
3
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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