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
3cc45472
Commit
3cc45472
authored
Feb 25, 2017
by
Theo Steininger
Browse files
Fixed mean in create_power_operator in sugar.py
parent
145f44a9
Pipeline
#10482
passed with stages
in 23 minutes and 1 second
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nifty/field.py
View file @
3cc45472
...
...
@@ -90,7 +90,7 @@ class Field(Loggable, Versionable, object):
elif
isinstance
(
val
,
Field
):
distribution_strategy
=
val
.
distribution_strategy
else
:
self
.
logger
.
debug
(
"
Datamodel
set to default!"
)
self
.
logger
.
debug
(
"
distribution_strategy
set to default!"
)
distribution_strategy
=
gc
[
'default_distribution_strategy'
]
elif
distribution_strategy
not
in
DISTRIBUTION_STRATEGIES
[
'global'
]:
raise
ValueError
(
...
...
nifty/sugar.py
View file @
3cc45472
...
...
@@ -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
(
std
=
0
)
f
=
fp
.
power_synthesize
(
mean
=
1
,
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