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

Added dtype keyword to create_power_operator

parent d658ea45
No related branches found
No related tags found
1 merge request!69Master
Pipeline #
...@@ -8,12 +8,14 @@ from nifty import PowerSpace,\ ...@@ -8,12 +8,14 @@ from nifty import PowerSpace,\
__all__ = ['create_power_operator'] __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: if not domain.harmonic:
fft = FFTOperator(domain) fft = FFTOperator(domain)
domain = fft.target[0] domain = fft.target[0]
power_domain = PowerSpace(domain, power_domain = PowerSpace(domain,
dtype=dtype,
distribution_strategy=distribution_strategy) distribution_strategy=distribution_strategy)
fp = Field(power_domain, fp = Field(power_domain,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment