Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ift
NIFTy
Commits
fa229f6c
Commit
fa229f6c
authored
May 19, 2017
by
Theo Steininger
Browse files
create_power_operator now processes the sqrt of a p**2 powerspectrum.
parent
8a0939fe
Pipeline
#12770
failed with stages
in 4 minutes and 50 seconds
Changes
1
Pipelines
5
Hide whitespace changes
Inline
Side-by-side
nifty/sugar.py
View file @
fa229f6c
...
...
@@ -36,9 +36,10 @@ def create_power_operator(domain, power_spectrum, dtype=None,
fp
=
Field
(
power_domain
,
val
=
power_spectrum
,
dtype
=
dtype
,
distribution_strategy
=
distribution_strategy
)
fp
**=
2
f
=
fp
.
power_synthesize
(
mean
=
1
,
std
=
0
,
real_signal
=
False
)
power_operator
=
DiagonalOperator
(
domain
,
diagonal
=
f
,
bare
=
True
)
return
power_operator
\ No newline at end of file
return
power_operator
Theo Steininger
@theos
mentioned in issue
#128 (closed)
·
May 19, 2017
mentioned in issue
#128 (closed)
mentioned in issue #128
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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