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
f90e6228
Commit
f90e6228
authored
May 28, 2019
by
Martin Reinecke
Browse files
cosmetics
parent
2c9cf99f
Pipeline
#50118
canceled with stages
in 2 minutes and 17 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
demos/bench_gridder.py
View file @
f90e6228
...
...
@@ -29,7 +29,7 @@ for ii in range(10, 26):
t0
=
time
()
GM
=
ift
.
GridderMaker
(
uvspace
,
eps
=
1e-7
,
uvw
=
uvw
,
channel_fact
=
np
.
array
([
1.
]),
flags
=
np
.
zeros
((
N
,
1
),
dtype
=
np
.
bool
))
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 @
f90e6228
...
...
@@ -41,7 +41,7 @@ def test_gridding(nu, nv, N, eps):
# Nifty
GM
=
ift
.
GridderMaker
(
ift
.
RGSpace
((
nu
,
nv
)),
uvw
=
uvw
,
channel_fact
=
np
.
array
([
1.
]),
eps
=
eps
,
flags
=
np
.
zeros
((
N
,
1
),
dtype
=
np
.
bool
))
flags
=
np
.
zeros
((
N
,
1
),
dtype
=
np
.
bool
))
vis2
=
ift
.
from_global_data
(
ift
.
UnstructuredDomain
(
vis
.
shape
),
vis
)
Op
=
GM
.
getFull
()
...
...
@@ -63,7 +63,7 @@ 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
,
flags
=
np
.
zeros
((
N
,
1
),
dtype
=
np
.
bool
))
flags
=
np
.
zeros
((
N
,
1
),
dtype
=
np
.
bool
))
R0
=
GM
.
getGridder
()
R1
=
GM
.
getRest
()
R
=
R1
@
R0
...
...
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