Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
NIFTy
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
6
Issues
6
List
Boards
Labels
Milestones
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ift
NIFTy
Commits
4f8f591e
Commit
4f8f591e
authored
Apr 08, 2019
by
Martin Reinecke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cosmetics
parent
c2c4a98f
Pipeline
#46516
passed with stages
in 8 minutes and 9 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
nifty5/__init__.py
nifty5/__init__.py
+2
-1
nifty5/library/smooth_linear_amplitude.py
nifty5/library/smooth_linear_amplitude.py
+8
-5
No files found.
nifty5/__init__.py
View file @
4f8f591e
...
...
@@ -74,7 +74,8 @@ from .minimization.metric_gaussian_kl import MetricGaussianKL
from
.sugar
import
*
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.los_response
import
LOSResponse
from
.library.dynamic_operator
import
(
dynamic_operator
,
...
...
nifty5/library/smooth_linear_amplitude.py
View file @
4f8f591e
...
...
@@ -111,6 +111,7 @@ def CepstrumOperator(target, a, k0):
return
sym
@
qht
@
makeOp
(
cepstrum
.
sqrt
())
def
SLAmplitude
(
*
,
target
,
n_pix
,
a
,
k0
,
sm
,
sv
,
im
,
iv
,
keys
=
[
'tau'
,
'phi'
]):
'''Operator for parametrizing smooth amplitudes (square roots of power
spectra).
...
...
@@ -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
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'
]):
'''LinearOperator for parametrizing smooth log-amplitudes (square roots of power
spectra).
def
LinearSLAmplitude
(
*
,
target
,
n_pix
,
a
,
k0
,
sm
,
sv
,
im
,
iv
,
keys
=
[
'tau'
,
'phi'
]):
'''LinearOperator for parametrizing smooth log-amplitudes (square roots of
power spectra).
Logarithm of SLAmplitude
See documentation of SLAmplitude for more details
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment