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
7a4f14e6
Commit
7a4f14e6
authored
Apr 11, 2019
by
Martin Reinecke
Browse files
cosmetics
parent
fa998553
Pipeline
#46738
passed with stages
in 8 minutes and 24 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
demos/getting_started_1.py
View file @
7a4f14e6
...
...
@@ -97,9 +97,9 @@ if __name__ == '__main__':
# Masking operator to model that parts of the field have not been observed
mask
=
ift
.
Field
.
from_global_data
(
position_space
,
mask
)
Mask
=
ift
.
MaskOperator
(
mask
)
# The response operator consists of
# - a
n
harmonic transform (to get to image space)
# - a harmonic transform (to get to image space)
# - the application of the mask
# - the removal of geometric information
# The removal of geometric information is included in the MaskOperator
...
...
@@ -146,6 +146,7 @@ if __name__ == '__main__':
plot
.
add
(
HT
(
MOCK_SIGNAL
),
title
=
'Mock Signal'
)
plot
.
add
(
Mask
.
adjoint
(
data
),
title
=
'Data'
)
plot
.
add
(
HT
(
m
),
title
=
'Reconstruction'
)
plot
.
add
(
Mask
.
adjoint
(
Mask
(
HT
(
m
)
-
HT
(
MOCK_SIGNAL
))),
title
=
'Residuals'
)
plot
.
add
(
Mask
.
adjoint
(
Mask
(
HT
(
m
)
-
HT
(
MOCK_SIGNAL
))),
title
=
'Residuals'
)
plot
.
output
(
nx
=
2
,
ny
=
2
,
xsize
=
10
,
ysize
=
10
,
name
=
filename
)
print
(
"Saved results as '{}'."
.
format
(
filename
))
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