Commit 37e802de authored by Martin Reinecke's avatar Martin Reinecke
Browse files

temporary renaming to make things less confusing

parent 83c74e7b
Pipeline #26415 passed with stage
in 5 minutes and 47 seconds
...@@ -70,7 +70,7 @@ class NonlinearPowerEnergy(Energy): ...@@ -70,7 +70,7 @@ class NonlinearPowerEnergy(Energy):
if samples is None or samples == 0: if samples is None or samples == 0:
xi_sample_list = [xi] xi_sample_list = [xi]
else: else:
xi_sample_list = [D.draw_sample() + xi xi_sample_list = [D.draw_inverse_sample() + xi
for _ in range(samples)] for _ in range(samples)]
self.xi_sample_list = xi_sample_list self.xi_sample_list = xi_sample_list
self.inverter = inverter self.inverter = inverter
......
...@@ -60,7 +60,7 @@ class WienerFilterCurvature(EndomorphicOperator): ...@@ -60,7 +60,7 @@ class WienerFilterCurvature(EndomorphicOperator):
def apply(self, x, mode): def apply(self, x, mode):
return self._op.apply(x, mode) return self._op.apply(x, mode)
def draw_sample(self, dtype=np.float64): def draw_inverse_sample(self, dtype=np.float64):
n = self.N.draw_sample(dtype) n = self.N.draw_sample(dtype)
s = self.S.draw_sample(dtype) s = self.S.draw_sample(dtype)
......
...@@ -51,7 +51,7 @@ class StatCalculator(object): ...@@ -51,7 +51,7 @@ class StatCalculator(object):
def probe_with_posterior_samples(op, post_op, nprobes): def probe_with_posterior_samples(op, post_op, nprobes):
sc = StatCalculator() sc = StatCalculator()
for i in range(nprobes): for i in range(nprobes):
sample = post_op(op.draw_sample()) sample = post_op(op.draw_inverse_sample())
sc.add(sample) sc.add(sample)
if nprobes == 1: if nprobes == 1:
......
...@@ -84,7 +84,7 @@ class Noise_Energy_Tests(unittest.TestCase): ...@@ -84,7 +84,7 @@ class Noise_Energy_Tests(unittest.TestCase):
S=S, S=S,
inverter=inverter).curvature inverter=inverter).curvature
res_sample_list = [d - R(f(ht(C.draw_sample() + xi))) res_sample_list = [d - R(f(ht(C.draw_inverse_sample() + xi)))
for _ in range(10)] for _ in range(10)]
energy0 = ift.library.NoiseEnergy(eta0, alpha, q, res_sample_list) energy0 = ift.library.NoiseEnergy(eta0, alpha, q, res_sample_list)
......
Supports Markdown
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