Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
NIFTy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
15
Issues
15
List
Boards
Labels
Service Desk
Milestones
Merge Requests
15
Merge Requests
15
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ift
NIFTy
Commits
a5bffb79
Commit
a5bffb79
authored
Aug 08, 2018
by
Lukas Platz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added signal and residual plot
parent
5d2241a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
demos/getting_started_2.py
demos/getting_started_2.py
+6
-2
No files found.
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