Commit d33f19a3 authored by Martin Reinecke's avatar Martin Reinecke
Browse files

cosmetics

parent 77d54592
......@@ -91,7 +91,8 @@ def testModelLibrary(space, seed):
# Tests amplitude model and coorelated field model
Npixdof, ceps_a, ceps_k, sm, sv, im, iv = 4, 0.5, 2., 3., 1.5, 1.75, 1.3
np.random.seed(seed)
model = ift.AmplitudeOperator(space, Npixdof, ceps_a, ceps_k, sm, sv, im, iv)
model = ift.AmplitudeOperator(space, Npixdof, ceps_a, ceps_k, sm, sv, im,
iv)
S = ift.ScalingOperator(1., model.domain)
pos = S.draw_sample()
ift.extra.check_value_gradient_consistency(model, pos, ntries=20)
......
......@@ -53,7 +53,7 @@ def _k_length_array_helper(index_arr, lmax):
else:
index_half = (index_arr + lmax + 1)//2
m = np.ceil(((2*lmax + 1) - np.sqrt((2*lmax + 1)**2 - 8*
m = np.ceil(((2*lmax + 1) - np.sqrt((2*lmax + 1)**2 - 8 *
(index_half - lmax)))/2).astype(int)
return index_half - m*(2*lmax + 1 - m)//2
......
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