Commit 01d27c0b authored by Martin Reinecke's avatar Martin Reinecke
Browse files

adjust to new PowerSpace

parent 7c1d9b14
...@@ -103,14 +103,12 @@ class CriticalPowerEnergy(Energy): ...@@ -103,14 +103,12 @@ class CriticalPowerEnergy(Energy):
posterior_sample = generate_posterior_sample( posterior_sample = generate_posterior_sample(
self.m, self.D) self.m, self.D)
projected_sample = posterior_sample.power_analyze( projected_sample = posterior_sample.power_analyze(
logarithmic=self.position.domain[0].config["logarithmic"], binbounds=self.position.domain[0].binbounds)
nbin=self.position.domain[0].config["nbin"])
w += (projected_sample) * self.rho w += (projected_sample) * self.rho
w /= float(self.samples) w /= float(self.samples)
else: else:
w = self.m.power_analyze( w = self.m.power_analyze(
logarithmic=self.position.domain[0].config["logarithmic"], binbounds=self.position.domain[0].binbounds)
nbin=self.position.domain[0].config["nbin"])
w *= self.rho w *= self.rho
self._w = w self._w = w
return self._w return self._w
......
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