Commit ea96116b authored by Theo Steininger's avatar Theo Steininger
Browse files

Merge branch 'power_operator_misses_square' into 'master'

added square in create_power_operator

See merge request !151
parents a220fe56 98ee655c
Pipeline #13434 passed with stage
in 5 minutes and 24 seconds
......@@ -55,5 +55,5 @@ def create_power_operator(domain, power_spectrum, dtype=None,
fp = Field(power_domain, val=power_spectrum, dtype=dtype,
f = fp.power_synthesize(mean=1, std=0, real_signal=False)
f **= 2
return DiagonalOperator(domain, diagonal=f, bare=True)
Supports Markdown
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