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
Commits
b2871be2
Commit
b2871be2
authored
Jul 25, 2018
by
Reimar H Leike
Browse files
now testing LOSResponse for adjoint consistency
parent
267ab565
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/test_operators/test_adjoint.py
View file @
b2871be2
...
...
@@ -35,6 +35,15 @@ _pow_spaces = [ift.PowerSpace(ift.RGSpace((17, 38), harmonic=True))]
class
Consistency_Tests
(
unittest
.
TestCase
):
@
expand
(
product
(
_p_RG_spaces
,
[
np
.
float64
,
np
.
complex128
]))
def
testLOSResponse
(
self
,
sp
,
dtype
):
starts
=
np
.
random
.
randn
(
len
(
sp
.
shape
),
10
)
ends
=
np
.
random
.
randn
(
len
(
sp
.
shape
),
10
)
sigma_low
=
1e-4
*
np
.
random
.
randn
(
10
)
sigma_ups
=
1e-5
*
np
.
random
.
randn
(
10
)
op
=
ift
.
LOSResponse
(
sp
,
starts
,
ends
,
sigma_low
,
sigma_ups
)
ift
.
extra
.
consistency_check
(
op
,
dtype
,
dtype
)
@
expand
(
product
(
_h_spaces
+
_p_spaces
+
_pow_spaces
,
[
np
.
float64
,
np
.
complex128
]))
def
testOperatorCombinations
(
self
,
sp
,
dtype
):
...
...
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