Commit 123f1b58 authored by Martin Reinecke's avatar Martin Reinecke
Browse files


parent de0a55da
......@@ -114,4 +114,3 @@ if __name__ == '__main__':
title='Data', name='data.png')
ift.plot(HT(m), title='Reconstruction', name='reconstruction.png')
ift.plot(mask_to_nan(mask, HT(m-MOCK_SIGNAL)), name='residuals.png')
......@@ -242,7 +242,7 @@ for op in ["__sub__", "__rsub__",
if self._domain is not other._domain:
raise ValueError("domain mismatch")
val = tuple(getattr(v1, op)(v2)
for v1, v2 in zip (self._val, other._val))
for v1, v2 in zip(self._val, other._val))
val = tuple(getattr(v1, op)(other) for v1 in self._val)
return MultiField(self._domain, val)
......@@ -41,7 +41,7 @@ class NullOperator(LinearOperator):
def _nullfield(dom):
if isinstance (dom, DomainTuple):
if isinstance(dom, DomainTuple):
return Field.full(dom, 0)
return MultiField(dom, (None,)*len(dom))
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