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

Fixed default distribution_strategy in create_power_operator

parent 9dbf2577
Branches
Tags
1 merge request!174Master
Pipeline #
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment