Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ift
NIFTy
Commits
8371ad47
Commit
8371ad47
authored
Jan 14, 2019
by
Philipp Arras
Browse files
Imports to the top
parent
1b278d87
Changes
1
Hide whitespace changes
Inline
Side-by-side
nifty5/library/smooth_linear_amplitude.py
View file @
8371ad47
...
...
@@ -19,6 +19,11 @@ import numpy as np
from
..domains.power_space
import
PowerSpace
from
..field
import
Field
from
..operators.exp_transform
import
ExpTransform
from
..operators.offset_operator
import
OffsetOperator
from
..operators.qht_operator
import
QHTOperator
from
..operators.slope_operator
import
SlopeOperator
from
..operators.symmetrizing_operator
import
SymmetrizingOperator
from
..sugar
import
makeOp
...
...
@@ -51,9 +56,6 @@ def CepstrumOperator(domain, a, k0):
.. math::
C(k) =
\\
left(
\\
frac{a}{1+(k/k0)^2}
\\
right)^2
'''
from
..operators.qht_operator
import
QHTOperator
from
..operators.symmetrizing_operator
import
SymmetrizingOperator
if
a
<=
0
or
k0
<=
0
:
raise
ValueError
...
...
@@ -119,10 +121,6 @@ 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.
'''
from
..operators.exp_transform
import
ExpTransform
from
..operators.slope_operator
import
SlopeOperator
from
..operators.offset_operator
import
OffsetOperator
if
not
(
isinstance
(
n_pix
,
int
)
and
isinstance
(
target
,
PowerSpace
)):
raise
TypeError
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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