diff --git a/nifty5/__init__.py b/nifty5/__init__.py index 38240a176c2403bbc12a826abd0583af9c207736..2cb37c0856223cbb6c3509c6f590100e0febf47f 100644 --- a/nifty5/__init__.py +++ b/nifty5/__init__.py @@ -50,8 +50,7 @@ from .operators.value_inserter import ValueInserter from .operators.energy_operators import ( EnergyOperator, GaussianEnergy, PoissonianEnergy, InverseGammaLikelihood, BernoulliEnergy, StandardHamiltonian, AveragedEnergy) -from .operators.convolution_operators import ( - SphericalConvolutionOperator, SphericalFuncConvolutionOperator) +from .operators.convolution_operators import SphericalFuncConvolutionOperator from .probing import probe_with_posterior_samples, probe_diagonal, \ StatCalculator diff --git a/nifty5/operators/convolution_operators.py b/nifty5/operators/convolution_operators.py index 6648d433ce5ca277480de01d2c662f994da3da56..cc08c2f5082e69f7afe2e4e41770c1816d0acd19 100644 --- a/nifty5/operators/convolution_operators.py +++ b/nifty5/operators/convolution_operators.py @@ -44,14 +44,13 @@ def SphericalFuncConvolutionOperator(domain, func): if not isinstance(domain[0], (HPSpace, GLSpace)): raise TypeError("need a spherical domain") kernel = domain[0].get_default_codomain().get_conv_kernel_from_func(func) - return SphericalConvolutionOperator(domain, kernel) + return _SphericalConvolutionOperator(domain, kernel) -class SphericalConvolutionOperator(EndomorphicOperator): +class _SphericalConvolutionOperator(EndomorphicOperator): """Convolves with kernel living on the appropriate LMSpace""" def __init__(self, domain, kernel): - if len(domain) != 1: raise ValueError("need exactly one domain") if len(kernel.domain) != 1: