Commit 3022d9c8 authored by Lukas Platz's avatar Lukas Platz

update demos and tests to comply

parent 0983b390
Pipeline #61581 passed with stages
in 7 minutes and 48 seconds
......@@ -93,7 +93,7 @@ if __name__ == '__main__':
'im': 0., # Expected y-intercept of power law
'iv': 0., # Prior standard deviation of -||-
# zero-mode
# zero-mode prior
'zm': 2.5e-4, # Prior mean
'zv': 1.0e-4 # Prior variance
}
......@@ -113,7 +113,7 @@ if __name__ == '__main__':
'im': 0., # Expected y-intercept of power law
'iv': 0., # Prior standard deviation of -||-
# zero-mode
# zero-mode prior
'zm': 3.0e-3, # Prior mean
'zv': 2.0e-3 # Prior variance
}
......
......@@ -75,9 +75,9 @@ if __name__ == '__main__':
'im': 0, # y-intercept mean, in-/decrease for more/less contrast
'iv': .3, # y-intercept variance
# Zero mode prior
'za': 5./2, # alpha of InverseGammaOperator
'zq': 3./2 # q of InverseGammaOperator
# Zero mode prior (InverseGammaOperator)
'zm': 2., # Prior mean
'zv': 0.5 # Prior variance
}
A = ift.SLAmplitude(**dct)
......
......@@ -90,7 +90,7 @@ def testModelLibrary(space, seed):
np.random.seed(seed)
domain = ift.PowerSpace(space.get_default_codomain())
model = ift.SLAmplitude(target=domain, n_pix=4, a=.5, k0=2, sm=3, sv=1.5,
im=1.75, iv=1.3, za=5, zq=4)
im=1.75, iv=1.3, zm=1., zv=0.5)
assert_(isinstance(model, ift.Operator))
S = ift.ScalingOperator(1., model.domain)
pos = S.draw_sample()
......@@ -102,7 +102,9 @@ def testModelLibrary(space, seed):
ift.extra.check_jacobian_consistency(model2, pos, ntries=20)
domtup = ift.DomainTuple.make((space, space))
model3 = ift.MultiCorrelatedField(domtup, [model, model], gs_a=5, gs_q=4)
model3 = ift.MultiCorrelatedField(domtup, [model, model],
gs_mean=5,
gs_var=2.5)
S = ift.ScalingOperator(1., model3.domain)
pos = S.draw_sample()
ift.extra.check_jacobian_consistency(model3, pos, ntries=20)
......
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