Commit 2135844d authored by Martin Reinecke's avatar Martin Reinecke

cosmetics

parent 39a7321a
Pipeline #30896 passed with stages
in 1 minute and 23 seconds
......@@ -46,7 +46,7 @@ def WienerFilterCurvature(R, N, S, inverter, sampling_inverter=None):
"""
M = SandwichOperator.make(R, N.inverse)
if sampling_inverter is not None:
op = SamplingEnabler(M, S.inverse, sampling_inverter, approximation=S.inverse)
op = SamplingEnabler(M, S.inverse, sampling_inverter, S.inverse)
else:
op = M + S.inverse
return InversionEnabler(op, inverter, S.inverse)
......@@ -61,7 +61,8 @@ class SamplingEnabler(EndomorphicOperator):
nj = self._likelihood.draw_sample()
energy = QuadraticEnergy(s, self._op, sp + nj,
_grad=self._likelihood(s) - nj)
energy, convergence = self._sampling_inverter(energy, preconditioner=self._approximation.inverse)
energy, convergence = self._sampling_inverter(
energy, preconditioner=self._approximation.inverse)
return energy.position
@property
......
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