Skip to content
Snippets Groups Projects
Commit 16b4838a authored by Theo Steininger's avatar Theo Steininger
Browse files

Fixed wrong mean in Field.power_synthesize.

parent 02647cdc
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -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:
......
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment