Commit 8466e7fc authored by Martin Reinecke's avatar Martin Reinecke

cosmetics

parent e69914c0
......@@ -22,9 +22,8 @@ if __name__ == '__main__':
ht = ift.HarmonicTransformOperator(harmonic_space, position_space)
power_space = A.value.domain[0]
power_distributor = ift.PowerDistributor(harmonic_space, power_space)
position = {}
position['xi'] = ift.Field.from_random('normal', harmonic_space)
position = ift.MultiField.from_dict(position)
position = ift.MultiField.from_dict(
{'xi': ift.Field.from_random('normal', harmonic_space)})
xi = ift.Variable(position)['xi']
Amp = power_distributor(A)
......@@ -35,6 +34,7 @@ if __name__ == '__main__':
# apply some nonlinearity
signal = ift.PointwisePositiveTanh(correlated_field)
# Building the Line of Sight response
LOS_starts, LOS_ends = get_random_LOS(100)
R = ift.LOSResponse(position_space, starts=LOS_starts,
......
......@@ -44,6 +44,7 @@ class LinearModel(Model):
self._lin_op = lin_op
self._inp = inp
# MR FIXME: what does this do?
if isinstance(self._lin_op, SelectionOperator):
self._lin_op = SelectionOperator(self._inp.value.domain,
self._lin_op._key)
......
......@@ -63,3 +63,9 @@ class MultiDomain(object):
def __ne__(self, x):
return not self.__eq__(x)
def __str__(self):
res = "MultiDomain:\n"
for key, dom in zip(self._keys, self._domains):
res += key+": "+str(dom)+"\n"
return res
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