### Merge branch 'codestyle' into 'NIFTy_5'

```code style fixes

See merge request ift/nifty-dev!217```
parents 0a4ea12b bb23bd60
 ... @@ -44,7 +44,8 @@ def polynomial(coefficients, sampling_points): ... @@ -44,7 +44,8 @@ def polynomial(coefficients, sampling_points): class PolynomialResponse(ift.LinearOperator): class PolynomialResponse(ift.LinearOperator): """Calculates values of a polynomial parameterized by input at sampling points. """Calculates values of a polynomial parameterized by input at sampling points. Parameters Parameters ---------- ---------- ... ...
 ... @@ -171,4 +171,3 @@ def check_jacobian_consistency(op, loc, tol=1e-8, ntries=100): ... @@ -171,4 +171,3 @@ def check_jacobian_consistency(op, loc, tol=1e-8, ntries=100): else: else: raise ValueError("gradient and value seem inconsistent") raise ValueError("gradient and value seem inconsistent") loc = locnext loc = locnext
 ... @@ -97,24 +97,24 @@ def _cone_arrays(c, domain, sigx, want_gradient): ... @@ -97,24 +97,24 @@ def _cone_arrays(c, domain, sigx, want_gradient): class LightConeOperator(Operator): class LightConeOperator(Operator): '''Constructs a Light cone from a set of lightspeed parameters. '''Constructs a Light cone from a set of lightspeed parameters. The resulting cone is defined as follows The resulting cone is defined as follows .. math:: .. math:: \\exp \\left(- \\frac{1}{2} \\Re \\left( \\Delta \\right)^2 \\right) \\exp \\left(- \\frac{1}{2} \\Re \\left( \\Delta \\right)^2 \\right) with with .. math:: .. math:: \\Delta = \\sqrt{- \\left(t^2 - \\frac{x^\\dagger C^{-1} x} \\Delta = \\sqrt{- \\left(t^2 - \\frac{x^\\dagger C^{-1} x} {\\sigma_x^2} \\right)} {\\sigma_x^2} \\right)} where t and x are the coordinates of the target space. Note that axis zero where t and x are the coordinates of the target space. Note that axis zero of the space is interpreted as the time axis. C denotes the input of the space is interpreted as the time axis. C denotes the input paramters of the operator and parametrizes the shape of the cone. paramters of the operator and parametrizes the shape of the cone. sigx is the width of the asymptotic Gaussian in x necessary for sigx is the width of the asymptotic Gaussian in x necessary for discretization. discretization. Parameters Parameters ---------- ---------- domain : Domain, tuple of Domain or DomainTuple domain : Domain, tuple of Domain or DomainTuple ... ...
 ... @@ -31,8 +31,8 @@ class ExpTransform(LinearOperator): ... @@ -31,8 +31,8 @@ class ExpTransform(LinearOperator): This operator creates a log-space subject to the degrees of freedom and This operator creates a log-space subject to the degrees of freedom and and its target-domain. and its target-domain. Then it transforms between this log-space and its target, which is defined in Then it transforms between this log-space and its target, which is defined normal units. in normal units. FIXME Write something on t_0 of domain space FIXME Write something on t_0 of domain space ... ...
Supports Markdown
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