Commit c8e16cdf authored by Philipp Arras's avatar Philipp Arras
Browse files

Cleanup

parent 42068f64
...@@ -23,7 +23,6 @@ import numpy as np ...@@ -23,7 +23,6 @@ import numpy as np
from ..compat import * from ..compat import *
from ..domains.power_space import PowerSpace from ..domains.power_space import PowerSpace
from ..field import Field from ..field import Field
from ..operators.offset_operator import OffsetOperator
from ..sugar import makeOp, sqrt from ..sugar import makeOp, sqrt
...@@ -105,6 +104,7 @@ def SlopeModel(logk_space, sm, sv, im, iv): ...@@ -105,6 +104,7 @@ def SlopeModel(logk_space, sm, sv, im, iv):
''' '''
from ..operators.slope_operator import SlopeOperator from ..operators.slope_operator import SlopeOperator
from ..operators.offset_operator import OffsetOperator
phi_mean = np.array([sm, im + sm*logk_space.t_0[0]]) phi_mean = np.array([sm, im + sm*logk_space.t_0[0]])
phi_sig = np.array([sv, iv]) phi_sig = np.array([sv, iv])
slope = SlopeOperator(logk_space) slope = SlopeOperator(logk_space)
...@@ -113,16 +113,8 @@ def SlopeModel(logk_space, sm, sv, im, iv): ...@@ -113,16 +113,8 @@ def SlopeModel(logk_space, sm, sv, im, iv):
return slope(OffsetOperator(phi_mean)(makeOp(phi_sig))) return slope(OffsetOperator(phi_mean)(makeOp(phi_sig)))
def AmplitudeModel(s_space, def AmplitudeModel(s_space, Npixdof, ceps_a, ceps_k, sm, sv, im, iv,
Npixdof, keys=['tau', 'phi'], zero_mode=True):
ceps_a,
ceps_k,
sm,
sv,
im,
iv,
keys=['tau', 'phi'],
zero_mode=True):
''' '''
Computes a smooth power spectrum. Computes a smooth power spectrum.
Output lives in PowerSpace. Output lives in PowerSpace.
......
...@@ -51,11 +51,8 @@ def CorrelatedField(s_space, amplitude_model, name='xi'): ...@@ -51,11 +51,8 @@ def CorrelatedField(s_space, amplitude_model, name='xi'):
return ht(vol(A)*FieldAdapter(h_space, name)) return ht(vol(A)*FieldAdapter(h_space, name))
def MfCorrelatedField(s_space_spatial, def MfCorrelatedField(s_space_spatial, s_space_energy, amplitude_model_spatial,
s_space_energy, amplitude_model_energy, name="xi"):
amplitude_model_spatial,
amplitude_model_energy,
name="xi"):
''' '''
Method for construction of correlated multi-frequency fields Method for construction of correlated multi-frequency fields
''' '''
......
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