Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
NIFTy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
13
Issues
13
List
Boards
Labels
Service Desk
Milestones
Merge Requests
13
Merge Requests
13
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ift
NIFTy
Commits
8371ad47
Commit
8371ad47
authored
Jan 14, 2019
by
Philipp Arras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Imports to the top
parent
1b278d87
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
nifty5/library/smooth_linear_amplitude.py
nifty5/library/smooth_linear_amplitude.py
+5
-7
No files found.
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
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