Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ift
NIFTy
Commits
53afdd10
Commit
53afdd10
authored
Nov 28, 2018
by
Martin Reinecke
Browse files
cometics
parent
2eba2b6e
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/test_operators/test_adjoint.py
View file @
53afdd10
...
...
@@ -59,10 +59,10 @@ class Consistency_Tests(unittest.TestCase):
ift
.
extra
.
consistency_check
(
op
,
dtype
,
dtype
)
def
testLinearInterpolator
(
self
):
sp
=
ift
.
RGSpace
((
10
,
8
),
distances
=
(
0.1
,
3.5
))
sp
=
ift
.
RGSpace
((
10
,
8
),
distances
=
(
0.1
,
3.5
))
pos
=
np
.
random
.
rand
(
2
,
23
)
pos
[
0
,:]
*=
0.9
pos
[
1
,:]
*=
7
*
3.5
pos
[
0
,
:]
*=
0.9
pos
[
1
,
:]
*=
7
*
3.5
op
=
ift
.
LinearInterpolator
(
sp
,
pos
)
ift
.
extra
.
consistency_check
(
op
)
...
...
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