Skip to content
Snippets Groups Projects
Commit b2871be2 authored by Reimar H Leike's avatar Reimar H Leike
Browse files

now testing LOSResponse for adjoint consistency

parent 267ab565
No related branches found
No related tags found
No related merge requests found
...@@ -35,6 +35,15 @@ _pow_spaces = [ift.PowerSpace(ift.RGSpace((17, 38), harmonic=True))] ...@@ -35,6 +35,15 @@ _pow_spaces = [ift.PowerSpace(ift.RGSpace((17, 38), harmonic=True))]
class Consistency_Tests(unittest.TestCase): 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, @expand(product(_h_spaces + _p_spaces + _pow_spaces,
[np.float64, np.complex128])) [np.float64, np.complex128]))
def testOperatorCombinations(self, sp, dtype): def testOperatorCombinations(self, sp, dtype):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment