Commit 1e15c712 authored by Martin Reinecke's avatar Martin Reinecke
Browse files

cosmetics

parent 958898bc
Pipeline #25658 passed with stage
in 9 minutes and 41 seconds
......@@ -53,7 +53,8 @@ class NoiseEnergy(Energy):
self._gradient += (alpha_field-0.5) - q_field*(exp(-self.position))
def at(self, position):
return self.__class__(position, self.alpha, self.q, self.res_sample_list)
return self.__class__(position, self.alpha, self.q,
self.res_sample_list)
@property
def value(self):
......
......@@ -84,7 +84,8 @@ class Noise_Energy_Tests(unittest.TestCase):
S=S,
inverter=inverter).curvature
res_sample_list = [d - R(f(ht(C.draw_sample() + xi))) for _ in range(10)]
res_sample_list = [d - R(f(ht(C.draw_sample() + xi)))
for _ in range(10)]
energy0 = ift.library.NoiseEnergy(eta0, alpha, q, res_sample_list)
energy1 = energy0.at(eta1)
......
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