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
2ea5817e
Commit
2ea5817e
authored
Jul 04, 2018
by
Jakob Knollmueller
Browse files
add plotting to demo
parent
b760b9dd
Changes
1
Show whitespace changes
Inline
Side-by-side
demos/bernoulli_demo.py
View file @
2ea5817e
...
...
@@ -68,5 +68,8 @@ if __name__ == '__main__':
# minimizer = ift.SteepestDescent(ic_newton)
H
,
convergence
=
minimizer
(
H
)
# result_sky = sky.at(H.position).value
# ift.plot(result_sky)
reconstruction
=
sky
.
at
(
H
.
position
).
value
ift
.
plot
(
reconstruction
,
title
=
'reconstruction'
,
name
=
'reconstruction.pdf'
)
ift
.
plot
(
GR
.
adjoint_times
(
data
),
title
=
'data'
,
name
=
'data.pdf'
)
ift
.
plot
(
sky
.
at
(
mock_position
).
value
,
title
=
'truth'
,
name
=
'truth.pdf'
)
Write
Preview
Supports
Markdown
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