Commit fa229f6c authored by Theo Steininger's avatar Theo Steininger

create_power_operator now processes the sqrt of a p**2 powerspectrum.

parent 8a0939fe
Pipeline #12770 failed with stages
in 4 minutes and 50 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