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
9949fff0
Commit
9949fff0
authored
Jul 10, 2018
by
Philipp Arras
Browse files
Cosmetics
parent
aa0b1292
Changes
1
Hide whitespace changes
Inline
Side-by-side
demos/getting_started_1.py
View file @
9949fff0
...
...
@@ -22,18 +22,19 @@ if __name__ == '__main__':
# FIXME description of the tutorial
# Choose problem geometry and masking
# One dimensional regular grid
position_space
=
ift
.
RGSpace
([
1024
])
mask
=
np
.
ones
(
position_space
.
shape
)
# # Two dimensional regular grid with chess mask
# position_space = ift.RGSpace([128, 128])
# mask = make_chess_mask(position_space)
# # Sphere with half of its locations randomly masked
# position_space = ift.HPSpace(128)
# mask = make_random_mask()
mode
=
0
if
mode
==
0
:
# One dimensional regular grid
position_space
=
ift
.
RGSpace
([
1024
])
mask
=
np
.
ones
(
position_space
.
shape
)
elif
mode
==
1
:
# Two dimensional regular grid with chess mask
position_space
=
ift
.
RGSpace
([
128
,
128
])
mask
=
make_chess_mask
(
position_space
)
else
:
# Sphere with half of its locations randomly masked
position_space
=
ift
.
HPSpace
(
128
)
mask
=
make_random_mask
()
harmonic_space
=
position_space
.
get_default_codomain
()
HT
=
ift
.
HarmonicTransformOperator
(
harmonic_space
,
target
=
position_space
)
...
...
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