Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ift
NIFTy
Commits
01d27c0b
Commit
01d27c0b
authored
Jul 12, 2017
by
Martin Reinecke
Browse files
adjust to new PowerSpace
parent
7c1d9b14
Changes
1
Hide whitespace changes
Inline
Side-by-side
nifty/library/critical_filter/critical_power_energy.py
View file @
01d27c0b
...
...
@@ -103,14 +103,12 @@ class CriticalPowerEnergy(Energy):
posterior_sample
=
generate_posterior_sample
(
self
.
m
,
self
.
D
)
projected_sample
=
posterior_sample
.
power_analyze
(
logarithmic
=
self
.
position
.
domain
[
0
].
config
[
"logarithmic"
],
nbin
=
self
.
position
.
domain
[
0
].
config
[
"nbin"
])
binbounds
=
self
.
position
.
domain
[
0
].
binbounds
)
w
+=
(
projected_sample
)
*
self
.
rho
w
/=
float
(
self
.
samples
)
else
:
w
=
self
.
m
.
power_analyze
(
logarithmic
=
self
.
position
.
domain
[
0
].
config
[
"logarithmic"
],
nbin
=
self
.
position
.
domain
[
0
].
config
[
"nbin"
])
binbounds
=
self
.
position
.
domain
[
0
].
binbounds
)
w
*=
self
.
rho
self
.
_w
=
w
return
self
.
_w
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment