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
5f3a35b7
Commit
5f3a35b7
authored
Jun 29, 2018
by
Jakob Knollmueller
Browse files
resolve conflict
parent
5aa8a3b6
Changes
1
Hide whitespace changes
Inline
Side-by-side
demos/getting_started_1.py
View file @
5f3a35b7
...
@@ -7,11 +7,7 @@ def make_chess_mask():
...
@@ -7,11 +7,7 @@ def make_chess_mask():
for
i
in
range
(
4
):
for
i
in
range
(
4
):
for
j
in
range
(
4
):
for
j
in
range
(
4
):
if
(
i
+
j
)
%
2
==
0
:
if
(
i
+
j
)
%
2
==
0
:
<<<<<<<
HEAD
mask
[
i
*
512
/
4
:(
i
+
1
)
*
512
/
4
,
j
*
512
/
4
:(
j
+
1
)
*
512
/
4
]
=
0
=======
mask
[
i
*
128
//
4
:(
i
+
1
)
*
128
//
4
,
j
*
128
//
4
:(
j
+
1
)
*
128
//
4
]
=
0
mask
[
i
*
128
//
4
:(
i
+
1
)
*
128
//
4
,
j
*
128
//
4
:(
j
+
1
)
*
128
//
4
]
=
0
>>>>>>>
2
b5d58fda1926161b86883a9e639f969c3c7e4fb
return
mask
return
mask
...
@@ -30,13 +26,8 @@ if __name__ == '__main__':
...
@@ -30,13 +26,8 @@ if __name__ == '__main__':
# position_space = ift.RGSpace([1024])
# position_space = ift.RGSpace([1024])
# mask = np.ones(position_space.shape)
# mask = np.ones(position_space.shape)
<<<<<<<
HEAD
# # Two dimensional regular grid with chess mask
position_space
=
ift
.
RGSpace
([
512
,
512
])
=======
# Two dimensional regular grid with chess mask
# Two dimensional regular grid with chess mask
position_space
=
ift
.
RGSpace
([
128
,
128
])
position_space
=
ift
.
RGSpace
([
128
,
128
])
>>>>>>>
2
b5d58fda1926161b86883a9e639f969c3c7e4fb
mask
=
make_chess_mask
()
mask
=
make_chess_mask
()
# # Sphere with half of its locations randomly masked
# # Sphere with half of its locations randomly masked
...
...
Write
Preview
Markdown
is supported
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