Skip to content
GitLab
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
9a4ea2b4
Commit
9a4ea2b4
authored
Jul 10, 2016
by
theos
Browse files
changed demo_wf1.py to use RGSpace by default.
parent
1cad6829
Changes
1
Hide whitespace changes
Inline
Side-by-side
demos/demo_wf1.py
View file @
9a4ea2b4
...
...
@@ -46,10 +46,10 @@ if __name__ == "__main__":
about
.
warnings
.
off
()
# some signal space; e.g., a two-dimensional regular grid
#
shape = [1024, 1024]
#
x_space = rg_space(shape)
shape
=
[
1024
,
1024
]
x_space
=
rg_space
(
shape
)
#y_space = point_space(1280*1280)
x_space
=
HPSpace
(
32
)
#
x_space = HPSpace(32)
#x_space = GLSpace(800)
k_space
=
x_space
.
get_codomain
()
# get conjugate space
...
...
@@ -72,7 +72,7 @@ if __name__ == "__main__":
# some noise variance; e.g., signal-to-noise ratio of 1
N
=
diagonal_operator
(
d_space
,
diag
=
s
.
var
(),
bare
=
True
)
# define noise covariance
n
=
N
.
get_random_
F
ield
(
domain
=
d_space
)
# generate noise
n
=
N
.
get_random_
f
ield
(
domain
=
d_space
)
# generate noise
d
=
R
(
s
)
+
n
# compute data
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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