Commit 69da894e authored by Philipp Arras's avatar Philipp Arras
Browse files

Fix chess mask

parent 7e98b864
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment