Commit 6e043763 authored by Martin Reinecke's avatar Martin Reinecke
Browse files

cosmetics

parent e6de9466
Pipeline #21875 passed with stage
in 4 minutes and 17 seconds
......@@ -116,9 +116,8 @@ class CriticalPowerEnergy(Energy):
w = Field.zeros(self.position.domain, dtype=self.m.dtype)
for i in range(self.samples):
# self.logger.info("Drawing sample %i" % i)
posterior_sample = generate_posterior_sample(
self.m, self.D)
w += self.P(abs(posterior_sample)**2)
sample = generate_posterior_sample(self.m, self.D)
w += self.P(abs(sample)**2)
w *= 1./self.samples
else:
......
......@@ -289,7 +289,6 @@ def generate_posterior_sample(mean, covariance):
-------
sample : Field
Returns the a sample from the Gaussian of given mean and covariance.
"""
S = covariance.op.S
......
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