Commit 0808fda1 authored by Theo Steininger's avatar Theo Steininger

Fixed default distribution_strategy in create_power_operator

parent 9dbf2577
Pipeline #15468 passed with stages
in 12 minutes and 38 seconds
......@@ -19,13 +19,14 @@
from nifty import PowerSpace,\
Field,\
DiagonalOperator,\
sqrt
from nifty.minimization.conjugate_gradient import ConjugateGradient
__all__ = ['create_power_operator']
sqrt,\
nifty_configuration
__all__ = ['create_power_operator', 'generate_posterior_sample']
def create_power_operator(domain, power_spectrum, dtype=None,
distribution_strategy='not'):
distribution_strategy=None):
""" Creates a diagonal operator with the given power spectrum.
Constructs a diagonal operator that lives over the specified domain.
......@@ -51,6 +52,10 @@ def create_power_operator(domain, power_spectrum, dtype=None,
"""
if distribution_strategy is None:
distribution_strategy = \
nifty_configuration['default_distribution_strategy']
if isinstance(power_spectrum, Field):
power_domain = power_spectrum.domain
else:
......
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