Commit 3cc45472 authored by Theo Steininger's avatar 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
......@@ -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(
......
......@@ -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)
......
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