Commit 40ed2574 authored by Theo Steininger's avatar Theo Steininger
Browse files

Added dtype keyword to create_power_operator

parent d658ea45
Pipeline #10748 failed with stages
in 20 minutes and 17 seconds
......@@ -8,12 +8,14 @@ from nifty import PowerSpace,\
__all__ = ['create_power_operator']
def create_power_operator(domain, power_spectrum, distribution_strategy='not'):
def create_power_operator(domain, power_spectrum, dtype=None,
distribution_strategy='not'):
if not domain.harmonic:
fft = FFTOperator(domain)
domain = fft.target[0]
power_domain = PowerSpace(domain,
dtype=dtype,
distribution_strategy=distribution_strategy)
fp = Field(power_domain,
......
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