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
5430ac43
Commit
5430ac43
authored
Aug 28, 2019
by
Philipp Arras
Browse files
Cleanup
parent
120b6769
Changes
1
Show whitespace changes
Inline
Side-by-side
test.py
View file @
5430ac43
...
...
@@ -364,11 +364,10 @@ def test_holo_from_correlations(nxdirty, nydirty, nchan, nrow, epsilon):
# Precompute 2*W**2-2*W+1 images (naive: 4*W**2-4*W+1)
d0
,
d1
=
[],
[]
for
du
,
dv
in
product
(
range
(
-
W
+
1
,
W
),
range
(
1
,
W
)):
print
(
du
)
d0
.
append
(
ng
.
get_correlations
(
bl
,
conf
,
idx
,
du
=
du
,
dv
=
dv
))
d0
.
append
(
ng
.
get_correlations
(
bl
,
conf
,
idx
,
du
,
dv
))
for
du
in
range
(
1
,
W
):
d1
.
append
(
ng
.
get_correlations
(
bl
,
conf
,
idx
,
du
=
du
,
dv
=
0
))
d2
=
ng
.
get_correlations
(
bl
,
conf
,
idx
,
du
=
0
,
dv
=
0
)
d1
.
append
(
ng
.
get_correlations
(
bl
,
conf
,
idx
,
du
,
0
))
d2
=
ng
.
get_correlations
(
bl
,
conf
,
idx
,
0
,
0
)
# Apply
for
ii
,
(
du
,
dv
)
in
enumerate
(
product
(
range
(
-
W
+
1
,
W
),
range
(
1
,
W
))):
...
...
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