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

Pep8 changes

parent 6751d5bc
Pipeline #24219 passed with stage
in 5 minutes and 6 seconds
......@@ -202,10 +202,10 @@ class Curvature_Tests(unittest.TestCase):
assert_allclose(ift.dobj.to_global_data(a.val),
ift.dobj.to_global_data(b.val), rtol=tol, atol=tol)
@expand(product([ift.RGSpace(64, distances=.789),
ift.RGSpace([32, 32], distances=.789)],
[ift.library.Linear], # Only linear case due to approximation of Hessian in the case of nontrivial nonlinearities.
# Only linear case due to approximation of Hessian in the case of nontrivial nonlinearities.
[ift.library.Linear],
[4, 78, 23]))
def testNonlinearMapCurvature(self, space, nonlinearity, seed):
np.random.seed(seed)
......
......@@ -63,7 +63,8 @@ class Energy_Tests(unittest.TestCase):
tol_abs_gradnorm=1e-5)
inverter = ift.ConjugateGradient(IC)
S = ift.create_power_operator(hspace, power_spectrum=lambda k: 1./(1+k**2))
S = ift.create_power_operator(
hspace, power_spectrum=lambda k: 1. / (1 + k**2))
D = ift.library.WienerFilterEnergy(position=s, d=d, R=R, N=N, S=S,
inverter=inverter).curvature
......
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