Commit b59b2cb5 authored by Martin Reinecke's avatar Martin Reinecke
Browse files

Merge branch 'fix_repr_operator_adapter' into 'NIFTy_5'

fix OperatorAdapter.__repr__ index out of range

See merge request ift/nifty-dev!111
parents b7b808bf 2cc2844d
......@@ -69,6 +69,6 @@ class OperatorAdapter(LinearOperator):
def __repr__(self):
from ..utilities import indent
mode = ["adjoint", "inverse", "adjoint inverse"][self._trafo]
mode = ["adjoint", "inverse", "adjoint inverse"][self._trafo-1]
res = "OperatorAdapter: {}\n".format(mode)
return res + indent(self._op.__repr__())
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