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
1628a721
Commit
1628a721
authored
Jan 13, 2019
by
Philipp Arras
Browse files
Cosmetics
parent
52185947
Changes
2
Show whitespace changes
Inline
Side-by-side
nifty5/__init__.py
View file @
1628a721
...
...
@@ -76,7 +76,8 @@ from .plot import Plot
from
.library.amplitude_operator
import
AmplitudeOperator
from
.library.inverse_gamma_operator
import
InverseGammaOperator
from
.library.los_response
import
LOSResponse
from
.library.dynamic_operator
import
dynamic_operator
,
dynamic_lightcone_operator
from
.library.dynamic_operator
import
(
dynamic_operator
,
dynamic_lightcone_operator
)
from
.library.light_cone_operator
import
LightConeOperator
from
.library.wiener_filter_curvature
import
WienerFilterCurvature
...
...
nifty5/library/dynamic_operator.py
View file @
1628a721
...
...
@@ -18,8 +18,8 @@
import
numpy
as
np
from
..domain_tuple
import
DomainTuple
from
..domains.unstructured_domain
import
UnstructuredDomain
from
..domains.rg_space
import
RGSpace
from
..domains.unstructured_domain
import
UnstructuredDomain
from
..field
import
Field
from
..operators.diagonal_operator
import
DiagonalOperator
from
..operators.field_zero_padder
import
FieldZeroPadder
...
...
@@ -149,19 +149,21 @@ def dynamic_lightcone_operator(domain, harmonic_padding, sm_s0, sm_x0, key,
lightcone_key
,
sigc
,
quant
,
causal
=
True
,
minimum_phase
=
False
):
'''
Constructs an operator encoding the Greens function of a linear homogeneous dynamic system.
The Greens function is constrained to be within a light cone.
Constructs an operator encoding the Greens function of a linear
homogeneous dynamic system. The Greens function is constrained
to be within a light cone.
Parameters
----------
domain : RGSpace
The space under consideration. Must have dim > 1.
harmonic_padding : None, int, list of int
Amount of central padding in harmonic space in pixels. If None the field is not padded at all.
Amount of central padding in harmonic space in pixels. If None the
field is not padded at all.
sm_s0 : float
Cutoff for dynamic smoothness prior
Cutoff for dynamic smoothness prior
.
sm_x0 : float, List of float
Scaling of dynamic smoothness along each axis
Scaling of dynamic smoothness along each axis
.
key : String
key for dynamics encoding parameter.
lightcone_key: String
...
...
@@ -171,21 +173,23 @@ def dynamic_lightcone_operator(domain, harmonic_padding, sm_s0, sm_x0, key,
quant : float
Quantization of the light cone in pixels.
causal : boolean
Whether or not the reconstructed dynamics should be causal in time
Whether or not the reconstructed dynamics should be causal in time
.
minimum_phase: boolean
Whether or not the reconstructed dynamics should be minimum phase
Whether or not the reconstructed dynamics should be minimum phase
.
Returns
-------
Operator
The Operator encoding the dynamic Greens function in harmonic space when evaluated.
Dictionary of Operator
A collection of sub-chains of Operators which can be used for plotting and evaluation.
The Operator encoding the dynamic Greens function in harmonic space
when evaluated.
dict
A collection of sub-chains of :class:`Operator` s which can be used
for plotting and evaluation.
Notes
-----
Currently only supports RGSpace
s.
Note that the first axis of the space is interpreted as the time axis
.
The first axis of the space is interpreted as the time axi
s.
Supports only RGSpaces currently
.
'''
if
len
(
domain
.
shape
)
<
2
:
raise
ValueError
(
"Space must be at least 2 dimensional!"
)
...
...
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