Commit 1628a721 authored by Philipp Arras's avatar Philipp Arras
Browse files

Cosmetics

parent 52185947
...@@ -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
......
...@@ -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 RGSpaces. The first axis of the space is interpreted as the time axis.
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!")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment