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
ffe07328
Commit
ffe07328
authored
Feb 19, 2021
by
Philipp Arras
Browse files
Fixup
parent
2f3f3889
Pipeline
#93850
passed with stages
in 11 minutes and 47 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
test/test_operators/test_interpolators.py
View file @
ffe07328
...
...
@@ -23,8 +23,7 @@ import nifty7 as ift
pmp
=
pytest
.
mark
.
parametrize
@
pmp
(
"interpolator"
,
"LinearInterpolator"
)
def
test_grid_points
(
interpolator
):
def
test_grid_points
():
res
=
64
vol
=
2
sp
=
ift
.
RGSpace
([
res
,
res
],
[
vol
/
res
,
vol
/
res
])
...
...
@@ -35,7 +34,7 @@ def test_grid_points(interpolator):
dist
=
np
.
array
(
dist
).
reshape
(
-
1
,
1
)
sampling_points
=
dist
*
mg
R
=
getattr
(
ift
,
i
nterpolator
)
(
sp
,
sampling_points
)
R
=
ift
.
LinearI
nterpolator
(
sp
,
sampling_points
)
ift
.
extra
.
check_linear_operator
(
R
,
atol
=
1e-7
,
rtol
=
1e-7
)
inp
=
ift
.
from_random
(
R
.
domain
)
...
...
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