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
69da894e
Commit
69da894e
authored
Jul 10, 2018
by
Philipp Arras
Browse files
Fix chess mask
parent
7e98b864
Changes
1
Hide whitespace changes
Inline
Side-by-side
demos/getting_started_1.py
View file @
69da894e
...
...
@@ -2,7 +2,7 @@ import nifty5 as ift
import
numpy
as
np
def
make_chess_mask
():
def
make_chess_mask
(
position_space
):
mask
=
np
.
ones
(
position_space
.
shape
)
for
i
in
range
(
4
):
for
j
in
range
(
4
):
...
...
@@ -29,7 +29,7 @@ if __name__ == '__main__':
# # Two dimensional regular grid with chess mask
# position_space = ift.RGSpace([128,128])
# mask = make_chess_mask()
# mask = make_chess_mask(
position_space
)
# # Sphere with half of its locations randomly masked
# position_space = ift.HPSpace(128)
...
...
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