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
16b4838a
Commit
16b4838a
authored
Feb 16, 2017
by
Theo Steininger
Browse files
Fixed wrong mean in Field.power_synthesize.
parent
02647cdc
Pipeline
#10201
passed with stages
in 16 minutes and 19 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nifty/field.py
View file @
16b4838a
...
...
@@ -287,6 +287,10 @@ class Field(Loggable, Versionable, object):
def
power_synthesize
(
self
,
spaces
=
None
,
real_signal
=
True
,
mean
=
None
,
std
=
None
):
if
mean
is
None
:
mean
=
1.
# assert that all spaces in `self.domain` are either of signal-type or
# power_space instances
for
sp
in
self
.
domain
:
...
...
nifty/sugar.py
View file @
16b4838a
...
...
@@ -20,7 +20,7 @@ def create_power_operator(domain, power_spectrum, distribution_strategy='not'):
val
=
power_spectrum
,
distribution_strategy
=
distribution_strategy
)
f
=
fp
.
power_synthesize
(
mean
=
1
,
std
=
0
)
f
=
fp
.
power_synthesize
(
std
=
0
)
power_operator
=
DiagonalOperator
(
domain
,
diagonal
=
f
)
...
...
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