Commit 4f8f591e authored by Martin Reinecke's avatar Martin Reinecke

cosmetics

parent c2c4a98f
Pipeline #46516 passed with stages
in 8 minutes and 9 seconds
...@@ -74,7 +74,8 @@ from .minimization.metric_gaussian_kl import MetricGaussianKL ...@@ -74,7 +74,8 @@ from .minimization.metric_gaussian_kl import MetricGaussianKL
from .sugar import * from .sugar import *
from .plot import Plot from .plot import Plot
from .library.smooth_linear_amplitude import SLAmplitude, LinearSLAmplitude, CepstrumOperator from .library.smooth_linear_amplitude import (
SLAmplitude, LinearSLAmplitude, CepstrumOperator)
from .library.inverse_gamma_operator import InverseGammaOperator from .library.inverse_gamma_operator import InverseGammaOperator
from .library.los_response import LOSResponse from .library.los_response import LOSResponse
from .library.dynamic_operator import (dynamic_operator, from .library.dynamic_operator import (dynamic_operator,
......
...@@ -111,6 +111,7 @@ def CepstrumOperator(target, a, k0): ...@@ -111,6 +111,7 @@ def CepstrumOperator(target, a, k0):
return sym @ qht @ makeOp(cepstrum.sqrt()) return sym @ qht @ makeOp(cepstrum.sqrt())
def SLAmplitude(*, target, n_pix, a, k0, sm, sv, im, iv, keys=['tau', 'phi']): def SLAmplitude(*, target, n_pix, a, k0, sm, sv, im, iv, keys=['tau', 'phi']):
'''Operator for parametrizing smooth amplitudes (square roots of power '''Operator for parametrizing smooth amplitudes (square roots of power
spectra). spectra).
...@@ -168,12 +169,14 @@ def SLAmplitude(*, target, n_pix, a, k0, sm, sv, im, iv, keys=['tau', 'phi']): ...@@ -168,12 +169,14 @@ def SLAmplitude(*, target, n_pix, a, k0, sm, sv, im, iv, keys=['tau', 'phi']):
which returns on its target a power spectrum which consists out of a which returns on its target a power spectrum which consists out of a
smooth and a linear part. smooth and a linear part.
''' '''
return LinearSLAmplitude(target=target, n_pix=n_pix, a=a, k0=k0, sm=sm, sv=sv, im=im, iv=iv, keys=keys).exp() return LinearSLAmplitude(target=target, n_pix=n_pix, a=a, k0=k0, sm=sm,
sv=sv, im=im, iv=iv, keys=keys).exp()
def LinearSLAmplitude(*, target, n_pix, a, k0, sm, sv, im, iv, keys=['tau', 'phi']): def LinearSLAmplitude(*, target, n_pix, a, k0, sm, sv, im, iv,
'''LinearOperator for parametrizing smooth log-amplitudes (square roots of power keys=['tau', 'phi']):
spectra). '''LinearOperator for parametrizing smooth log-amplitudes (square roots of
power spectra).
Logarithm of SLAmplitude Logarithm of SLAmplitude
See documentation of SLAmplitude for more details See documentation of SLAmplitude for more details
......
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