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
On Thursday, 7th July from 1 to 3 pm there will be a maintenance with a short downtime of GitLab.
Open sidebar
ift
NIFTy
Commits
a5bffb79
Commit
a5bffb79
authored
Aug 08, 2018
by
Lukas Platz
Browse files
added signal and residual plot
parent
5d2241a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
demos/getting_started_2.py
View file @
a5bffb79
...
...
@@ -43,7 +43,7 @@ if __name__ == '__main__':
#
# # One dimensional regular grid with uniform exposure
# position_space = ift.RGSpace(1024)
# exposure =
np.ones
(position_space
.shape
)
# exposure =
ift.Field.full
(position_space
, 1.
)
# Two-dimensional regular grid with inhomogeneous exposure
position_space
=
ift
.
RGSpace
([
512
,
512
])
...
...
@@ -99,6 +99,10 @@ if __name__ == '__main__':
H
,
convergence
=
minimizer
(
H
)
# Plot results
ift
.
plot
(
sky
(
H
.
position
),
title
=
'Reconstruction'
)
signal
=
sky
(
mock_position
)
reconst
=
sky
(
H
.
position
)
ift
.
plot
(
signal
,
title
=
'Signal'
)
ift
.
plot
(
GR
.
adjoint
(
data
),
title
=
'Data'
)
ift
.
plot
(
reconst
,
title
=
'Reconstruction'
)
ift
.
plot
(
reconst
-
signal
,
title
=
'Residuals'
)
ift
.
plot_finish
(
name
=
'getting_started_2.png'
,
xsize
=
16
,
ysize
=
16
)
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