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
2da37399
Commit
2da37399
authored
Jan 23, 2020
by
Vincent Eberle
Browse files
cosmnetics
parent
68731e4f
Pipeline
#67718
passed with stages
in 15 minutes and 25 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
test/test_energy_gradients.py
View file @
2da37399
...
...
@@ -56,9 +56,7 @@ def test_ScaledEnergy(field, icov):
lin
=
ift
.
Linearization
.
make_var
(
field
,
want_metric
=
True
)
met1
=
energy
(
lin
).
metric
sE
=
energy
.
scale
(
0.3
)
linn
=
sE
(
lin
)
met2
=
linn
.
metric
met2
=
energy
.
scale
(
0.3
)(
lin
).
metric
np
.
testing
.
assert_allclose
(
met1
(
field
).
val
,
met2
(
field
).
val
/
0.3
,
rtol
=
1e-12
)
met2
.
draw_sample
()
...
...
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