Commit b1e900be authored by Philipp Arras's avatar Philipp Arras
Browse files

Add adjointness tests for new correlated field

parent 911f0095
Pipeline #63196 failed with stages
in 4 minutes and 16 seconds
...@@ -32,7 +32,11 @@ _p_RG_spaces = [ ...@@ -32,7 +32,11 @@ _p_RG_spaces = [
ift.RGSpace((1, 2, 3, 6), distances=(0.2, 0.25, 0.34, .8)) ift.RGSpace((1, 2, 3, 6), distances=(0.2, 0.25, 0.34, .8))
] ]
_p_spaces = _p_RG_spaces + [ift.HPSpace(17), ift.GLSpace(8, 13)] _p_spaces = _p_RG_spaces + [ift.HPSpace(17), ift.GLSpace(8, 13)]
_pow_spaces = [ift.PowerSpace(ift.RGSpace((17, 38), harmonic=True))] _pow_spaces = [
ift.PowerSpace(ift.RGSpace((17, 38), (0.99, 1340), harmonic=True)),
ift.PowerSpace(ift.LMSpace(18),
ift.PowerSpace.useful_binbounds(ift.LMSpace(18), False))
]
pmp = pytest.mark.parametrize pmp = pytest.mark.parametrize
dtype = list2fixture([np.float64, np.complex128]) dtype = list2fixture([np.float64, np.complex128])
...@@ -295,3 +299,21 @@ def testValueInserter(sp, seed): ...@@ -295,3 +299,21 @@ def testValueInserter(sp, seed):
ind.append(np.random.randint(0, ss-1)) ind.append(np.random.randint(0, ss-1))
op = ift.ValueInserter(sp, ind) op = ift.ValueInserter(sp, ind)
ift.extra.consistency_check(op) ift.extra.consistency_check(op)
@pmp('sp', _pow_spaces)
def testSlopeRemover(sp):
op = ift.library.correlated_fields._SlopeRemover(sp)
ift.extra.consistency_check(op)
@pmp('sp', _pow_spaces)
def testTwoLogIntegrations(sp):
op = ift.library.correlated_fields._TwoLogIntegrations(sp)
ift.extra.consistency_check(op)
@pmp('sp', _h_spaces + _p_spaces + _pow_spaces)
def testSpecialSum(sp):
op = ift.library.correlated_fields._SpecialSum(sp)
ift.extra.consistency_check(op)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment