Commit 37a6c3da authored by Martin Reinecke's avatar Martin Reinecke
Browse files

tentative fix

parent 261eb62c
...@@ -47,7 +47,7 @@ def CorrelatedField(s_space, amplitude_model): ...@@ -47,7 +47,7 @@ def CorrelatedField(s_space, amplitude_model):
def MfCorrelatedField(s_space_spatial, s_space_energy, amplitude_model_spatial, def MfCorrelatedField(s_space_spatial, s_space_energy, amplitude_model_spatial,
amplitude_model_energy, name=None): amplitude_model_energy, name="xi"):
''' '''
Method for construction of correlated multi-frequency fields Method for construction of correlated multi-frequency fields
''' '''
...@@ -58,9 +58,6 @@ def MfCorrelatedField(s_space_spatial, s_space_energy, amplitude_model_spatial, ...@@ -58,9 +58,6 @@ def MfCorrelatedField(s_space_spatial, s_space_energy, amplitude_model_spatial,
ht2 = HarmonicTransformOperator(ht1.target, space=1) ht2 = HarmonicTransformOperator(ht1.target, space=1)
ht = ht2(ht1) ht = ht2(ht1)
if name==None:
name="xi"
p_space_spatial = amplitude_model_spatial.target[0] p_space_spatial = amplitude_model_spatial.target[0]
p_space_energy = amplitude_model_energy.target[0] p_space_energy = amplitude_model_energy.target[0]
......
...@@ -178,6 +178,13 @@ class Linearization(object): ...@@ -178,6 +178,13 @@ class Linearization(object):
return Linearization(field, NullOperator(field.domain, field.domain), return Linearization(field, NullOperator(field.domain, field.domain),
want_metric=want_metric) want_metric=want_metric)
@staticmethod
def make_const_empty_input(field, want_metric=False):
from .operators.simple_linear_operators import NullOperator
from .multi_domain import MultiDomain
return Linearization(field, NullOperator(MultiDomain.make({}), field.domain),
want_metric=want_metric)
@staticmethod @staticmethod
def make_partial_var(field, constants, want_metric=False): def make_partial_var(field, constants, want_metric=False):
from .operators.scaling_operator import ScalingOperator from .operators.scaling_operator import ScalingOperator
......
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