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
b753ad27
Commit
b753ad27
authored
Jan 30, 2018
by
Philipp Arras
Browse files
Pep8 changes
parent
6751d5bc
Pipeline
#24219
passed with stage
in 5 minutes and 6 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
test/test_energies/test_map.py
View file @
b753ad27
...
...
@@ -202,10 +202,10 @@ class Curvature_Tests(unittest.TestCase):
assert_allclose
(
ift
.
dobj
.
to_global_data
(
a
.
val
),
ift
.
dobj
.
to_global_data
(
b
.
val
),
rtol
=
tol
,
atol
=
tol
)
@
expand
(
product
([
ift
.
RGSpace
(
64
,
distances
=
.
789
),
ift
.
RGSpace
([
32
,
32
],
distances
=
.
789
)],
[
ift
.
library
.
Linear
],
# Only linear case due to approximation of Hessian in the case of nontrivial nonlinearities.
# Only linear case due to approximation of Hessian in the case of nontrivial nonlinearities.
[
ift
.
library
.
Linear
],
[
4
,
78
,
23
]))
def
testNonlinearMapCurvature
(
self
,
space
,
nonlinearity
,
seed
):
np
.
random
.
seed
(
seed
)
...
...
test/test_energies/test_power.py
View file @
b753ad27
...
...
@@ -63,7 +63,8 @@ class Energy_Tests(unittest.TestCase):
tol_abs_gradnorm
=
1e-5
)
inverter
=
ift
.
ConjugateGradient
(
IC
)
S
=
ift
.
create_power_operator
(
hspace
,
power_spectrum
=
lambda
k
:
1.
/
(
1
+
k
**
2
))
S
=
ift
.
create_power_operator
(
hspace
,
power_spectrum
=
lambda
k
:
1.
/
(
1
+
k
**
2
))
D
=
ift
.
library
.
WienerFilterEnergy
(
position
=
s
,
d
=
d
,
R
=
R
,
N
=
N
,
S
=
S
,
inverter
=
inverter
).
curvature
...
...
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