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
ift
NIFTy
Commits
4ed7d826
Commit
4ed7d826
authored
Jan 29, 2018
by
Philipp Arras
Browse files
Cleanup
parent
fb3d4658
Changes
3
Hide whitespace changes
Inline
Side-by-side
test/test_energies/test_map.py
View file @
4ed7d826
...
...
@@ -24,10 +24,6 @@ from test.common import expand
from
numpy.testing
import
assert_allclose
# TODO Add also other space types
# TODO Set tolerances and eps to reasonable values
class
Energy_Tests
(
unittest
.
TestCase
):
@
expand
(
product
([
ift
.
RGSpace
(
64
,
distances
=
.
789
),
ift
.
RGSpace
([
32
,
32
],
distances
=
.
789
)],
...
...
test/test_energies/test_noise.py
View file @
4ed7d826
...
...
@@ -24,9 +24,6 @@ from test.common import expand
from
numpy.testing
import
assert_allclose
# TODO Add also other space types
class
Noise_Energy_Tests
(
unittest
.
TestCase
):
@
expand
(
product
([
ift
.
RGSpace
(
64
,
distances
=
.
789
),
ift
.
RGSpace
([
32
,
32
],
distances
=
.
789
)],
...
...
test/test_energies/test_power.py
View file @
4ed7d826
...
...
@@ -24,9 +24,6 @@ from test.common import expand
from
numpy.testing
import
assert_allclose
# TODO Add also other space types
class
Energy_Tests
(
unittest
.
TestCase
):
@
expand
(
product
([
ift
.
RGSpace
(
64
,
distances
=
.
789
),
ift
.
RGSpace
([
32
,
32
],
distances
=
.
789
)],
...
...
@@ -41,7 +38,6 @@ class Energy_Tests(unittest.TestCase):
P
=
ift
.
PowerProjectionOperator
(
domain
=
hspace
,
power_space
=
pspace
)
xi
=
ift
.
Field
.
from_random
(
domain
=
hspace
,
random_type
=
'normal'
)
# TODO Power spectrum should depend on number of pixels
def
pspec
(
k
):
return
64
/
(
1
+
k
**
2
)
**
dim
pspec
=
ift
.
PS_field
(
pspace
,
pspec
)
tau0
=
ift
.
log
(
pspec
)
...
...
@@ -159,7 +155,6 @@ class Curvature_Tests(unittest.TestCase):
P
=
ift
.
PowerProjectionOperator
(
domain
=
hspace
,
power_space
=
pspace
)
xi
=
ift
.
Field
.
from_random
(
domain
=
hspace
,
random_type
=
'normal'
)
# TODO Power spectrum should depend on number of pixels
def
pspec
(
k
):
return
64
/
(
1
+
k
**
2
)
**
dim
pspec
=
ift
.
PS_field
(
pspace
,
pspec
)
tau0
=
ift
.
log
(
pspec
)
...
...
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