Commit 7de910e8 authored by Martin Reinecke's avatar Martin Reinecke

Merge branch 'master' into spherical_plots

parents 4b11da0d fa229f6c
Pipeline #12701 passed with stage
in 6 minutes and 6 seconds
......@@ -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
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