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
On Thursday, 7th July from 1 to 3 pm there will be a maintenance with a short downtime of GitLab.
Open sidebar
ift
nifty_gridder
Commits
738ef6d0
Commit
738ef6d0
authored
Sep 02, 2019
by
Martin Reinecke
Browse files
adjust tolerance
parent
e87c64c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
test.py
View file @
738ef6d0
...
@@ -117,7 +117,7 @@ def test_adjointness_wgridding_highlevel(nxdirty, nydirty, nrow, nchan, epsilon,
...
@@ -117,7 +117,7 @@ def test_adjointness_wgridding_highlevel(nxdirty, nydirty, nrow, nchan, epsilon,
f2
=
ng
.
degridding_f
f2
=
ng
.
degridding_f
dirty2
=
f1
(
uvw
,
freq
,
vis
,
None
,
nxdirty
,
nydirty
,
pixsizex
,
pixsizey
,
epsilon
,
1
,
0
).
astype
(
"f8"
)
dirty2
=
f1
(
uvw
,
freq
,
vis
,
None
,
nxdirty
,
nydirty
,
pixsizex
,
pixsizey
,
epsilon
,
1
,
0
).
astype
(
"f8"
)
vis2
=
f2
(
uvw
,
freq
,
dirty
,
None
,
pixsizex
,
pixsizey
,
epsilon
,
1
,
0
).
astype
(
"c16"
)
vis2
=
f2
(
uvw
,
freq
,
dirty
,
None
,
pixsizex
,
pixsizey
,
epsilon
,
1
,
0
).
astype
(
"c16"
)
tol
=
5e-5
if
singleprec
else
2
e-13
tol
=
5e-5
if
singleprec
else
5
e-13
assert_allclose
(
np
.
vdot
(
vis
,
vis2
).
real
,
np
.
vdot
(
dirty2
,
dirty
),
assert_allclose
(
np
.
vdot
(
vis
,
vis2
).
real
,
np
.
vdot
(
dirty2
,
dirty
),
rtol
=
tol
)
rtol
=
tol
)
...
...
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