DiagonalOperator calls nonexistent attribute adjoint()
DiagonalOperator
contains the following code:
def _adjoint_times(self, x, spaces):
return self._times_helper(x, spaces,
operation=lambda z: z.adjoint().__mul__)
def _adjoint_inverse_times(self, x, spaces):
return self._times_helper(x, spaces,
operation=lambda z: z.adjoint().__rtruediv__)
The z.adjoint()
expression does not work, since nothing in NIFTy has an .adjoint() attribute. So far we have not noticed this, apparently because all of our DiagonalOperator
s were self-adjoint and these methods were not called.
I don't know what the correct version is. @theos?