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