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_gridder
Commits
01cb0e3f
Commit
01cb0e3f
authored
Aug 28, 2019
by
Philipp Arras
Browse files
Simplify
parent
2e91f517
Changes
1
Hide whitespace changes
Inline
Side-by-side
test.py
View file @
01cb0e3f
...
...
@@ -360,7 +360,7 @@ def test_holo_from_correlations(nxdirty, nydirty, nchan, nrow, epsilon):
grid
=
np
.
random
.
randn
(
nx
,
ny
)
+
1.0j
*
np
.
random
.
randn
(
nx
,
ny
)
W
=
conf
.
W
()
res0
=
np
.
zeros_like
(
grid
)
for
ii
,
(
du
,
dv
)
in
enumerate
(
product
(
*
(
2
*
(
range
(
-
W
+
1
,
W
),)))
)
:
for
du
,
dv
in
product
(
*
(
2
*
(
range
(
-
W
+
1
,
W
),))):
d
=
ng
.
get_correlations
(
bl
,
conf
,
idx
,
du
=
du
,
dv
=
dv
)
res0
+=
d
*
np
.
roll
(
np
.
roll
(
grid
,
-
du
,
axis
=
0
),
-
dv
,
axis
=
1
)
res1
=
ng
.
apply_holo
(
bl
,
conf
,
idx
,
grid
)
...
...
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