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
Open sidebar
ift
NIFTy
Commits
ccd864ba
Commit
ccd864ba
authored
Jun 29, 2018
by
Jakob Knollmueller
Browse files
current status
parent
bf1d9f6e
Changes
1
Hide whitespace changes
Inline
Side-by-side
demos/getting_started_1.py
View file @
ccd864ba
...
...
@@ -7,7 +7,7 @@ def make_chess_mask():
for
i
in
range
(
4
):
for
j
in
range
(
4
):
if
(
i
+
j
)
%
2
==
0
:
mask
[
i
*
12
8
/
4
:(
i
+
1
)
*
12
8
/
4
,
j
*
12
8
/
4
:(
j
+
1
)
*
12
8
/
4
]
=
0
mask
[
i
*
5
12
/
4
:(
i
+
1
)
*
5
12
/
4
,
j
*
5
12
/
4
:(
j
+
1
)
*
5
12
/
4
]
=
0
return
mask
def
make_random_mask
():
...
...
@@ -25,12 +25,12 @@ if __name__ == '__main__':
# mask = np.ones(position_space.shape)
# # Two dimensional regular grid with chess mask
#
position_space = ift.RGSpace([12
8
,12
8
])
#
mask = make_chess_mask()
position_space
=
ift
.
RGSpace
([
5
12
,
5
12
])
mask
=
make_chess_mask
()
# # Sphere with half of its locations randomly masked
position_space
=
ift
.
HPSpace
(
128
)
mask
=
make_random_mask
()
#
position_space = ift.HPSpace(128)
#
mask = make_random_mask()
# set up corresponding harmonic transform and space
harmonic_space
=
position_space
.
get_default_codomain
()
...
...
Write
Preview
Supports
Markdown
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