Skip to content
GitLab
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
2c9cf99f
Commit
2c9cf99f
authored
May 28, 2019
by
Martin Reinecke
Browse files
adjust to new gridder interface
parent
9df6b03c
Pipeline
#50117
canceled with stages
in 3 minutes and 24 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
demos/bench_gridder.py
View file @
2c9cf99f
...
...
@@ -27,7 +27,9 @@ for ii in range(10, 26):
img
=
ift
.
from_global_data
(
uvspace
,
img
)
t0
=
time
()
GM
=
ift
.
GridderMaker
(
uvspace
,
eps
=
1e-7
,
uvw
=
uvw
,
channel_fact
=
np
.
array
([
1.
]))
GM
=
ift
.
GridderMaker
(
uvspace
,
eps
=
1e-7
,
uvw
=
uvw
,
channel_fact
=
np
.
array
([
1.
]),
flags
=
np
.
zeros
((
N
,
1
),
dtype
=
np
.
bool
))
vis
=
ift
.
from_global_data
(
visspace
,
vis
)
op
=
GM
.
getFull
().
adjoint
t1
=
time
()
...
...
test/test_operators/test_nft.py
View file @
2c9cf99f
...
...
@@ -40,7 +40,8 @@ def test_gridding(nu, nv, N, eps):
# Nifty
GM
=
ift
.
GridderMaker
(
ift
.
RGSpace
((
nu
,
nv
)),
uvw
=
uvw
,
channel_fact
=
np
.
array
([
1.
]),
eps
=
eps
)
channel_fact
=
np
.
array
([
1.
]),
eps
=
eps
,
flags
=
np
.
zeros
((
N
,
1
),
dtype
=
np
.
bool
))
vis2
=
ift
.
from_global_data
(
ift
.
UnstructuredDomain
(
vis
.
shape
),
vis
)
Op
=
GM
.
getFull
()
...
...
@@ -61,7 +62,8 @@ def test_gridding(nu, nv, N, eps):
def
test_build
(
nu
,
nv
,
N
,
eps
):
dom
=
ift
.
RGSpace
([
nu
,
nv
])
uvw
=
np
.
random
.
rand
(
N
,
3
)
-
0.5
GM
=
ift
.
GridderMaker
(
dom
,
uvw
=
uvw
,
channel_fact
=
np
.
array
([
1.
]),
eps
=
eps
)
GM
=
ift
.
GridderMaker
(
dom
,
uvw
=
uvw
,
channel_fact
=
np
.
array
([
1.
]),
eps
=
eps
,
flags
=
np
.
zeros
((
N
,
1
),
dtype
=
np
.
bool
))
R0
=
GM
.
getGridder
()
R1
=
GM
.
getRest
()
R
=
R1
@
R0
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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